Dragontea: update pageListParse (#19479)

change some numbers
This commit is contained in:
Secozzi 2023-12-29 20:53:55 +00:00 committed by GitHub
parent 600eb2c0aa
commit 5f70aafd37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ class DragonTea : Madara(
val elements = document.select(".reading-content .page-break img")
val pageCount = elements.size
val idKey = "8" + ((dataId + 1306) * 3 - pageCount).toString()
val idKey = "11" + ((dataId + 1307) * 3 - pageCount).toString()
elements.forEach {
val decryptedId = decryptAesJson(it.attr("id"), idKey).jsonPrimitive.content
it.attr("id", decryptedId)
@ -52,11 +52,11 @@ class DragonTea : Madara(
val orderedElements = elements.sortedBy {
pageIndexRegex.find(it.attr("id"))?.groupValues?.get(1)?.toInt() ?: 0
}
val dtaKey = "13" + orderedElements.joinToString("") { it.attr("id").takeLast(1) } + (((dataId + 88) * 2) - pageCount - 4).toString()
val dtaKey = "15" + orderedElements.joinToString("") { it.attr("id").takeLast(1) } + (((dataId + 88) * 2) - pageCount - 5).toString()
val srcKey = (dataId + 20).toString() + orderedElements.joinToString("") {
decryptAesJson(it.attr("dta"), dtaKey).jsonPrimitive.content.takeLast(2)
} + (pageCount * 2).toString()
} + (pageCount * 4).toString()
return orderedElements.mapIndexed { i, element ->
val src = decryptAesJson(element.attr("data-src"), srcKey).jsonPrimitive.content

View File

@ -89,7 +89,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("DokkoManga", "https://dokkomanga.com", "es", overrideVersionCode = 1),
SingleLang("Doodmanga", "https://www.doodmanga.com", "th"),
SingleLang("DoujinHentai", "https://doujinhentai.net", "es", isNsfw = true, overrideVersionCode = 1),
SingleLang("DragonTea", "https://dragontea.ink", "en", overrideVersionCode = 2),
SingleLang("DragonTea", "https://dragontea.ink", "en", overrideVersionCode = 3),
SingleLang("DragonTranslation.net", "https://dragontranslation.net", "es", isNsfw = true, className = "DragonTranslationNet"),
SingleLang("Drake Scans", "https://drakescans.com", "en", overrideVersionCode = 4),
SingleLang("Dream Manga", "https://www.swarmmanga.com", "en", overrideVersionCode = 3),