diff --git a/multisrc/overrides/madara/dragontea/src/DragonTea.kt b/multisrc/overrides/madara/dragontea/src/DragonTea.kt index fb784bb81..7632bcc59 100644 --- a/multisrc/overrides/madara/dragontea/src/DragonTea.kt +++ b/multisrc/overrides/madara/dragontea/src/DragonTea.kt @@ -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 diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt index 778a26630..3a50fd74f 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt @@ -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),