parent
600eb2c0aa
commit
5f70aafd37
|
@ -43,7 +43,7 @@ class DragonTea : Madara(
|
||||||
val elements = document.select(".reading-content .page-break img")
|
val elements = document.select(".reading-content .page-break img")
|
||||||
val pageCount = elements.size
|
val pageCount = elements.size
|
||||||
|
|
||||||
val idKey = "8" + ((dataId + 1306) * 3 - pageCount).toString()
|
val idKey = "11" + ((dataId + 1307) * 3 - pageCount).toString()
|
||||||
elements.forEach {
|
elements.forEach {
|
||||||
val decryptedId = decryptAesJson(it.attr("id"), idKey).jsonPrimitive.content
|
val decryptedId = decryptAesJson(it.attr("id"), idKey).jsonPrimitive.content
|
||||||
it.attr("id", decryptedId)
|
it.attr("id", decryptedId)
|
||||||
|
@ -52,11 +52,11 @@ class DragonTea : Madara(
|
||||||
val orderedElements = elements.sortedBy {
|
val orderedElements = elements.sortedBy {
|
||||||
pageIndexRegex.find(it.attr("id"))?.groupValues?.get(1)?.toInt() ?: 0
|
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("") {
|
val srcKey = (dataId + 20).toString() + orderedElements.joinToString("") {
|
||||||
decryptAesJson(it.attr("dta"), dtaKey).jsonPrimitive.content.takeLast(2)
|
decryptAesJson(it.attr("dta"), dtaKey).jsonPrimitive.content.takeLast(2)
|
||||||
} + (pageCount * 2).toString()
|
} + (pageCount * 4).toString()
|
||||||
|
|
||||||
return orderedElements.mapIndexed { i, element ->
|
return orderedElements.mapIndexed { i, element ->
|
||||||
val src = decryptAesJson(element.attr("data-src"), srcKey).jsonPrimitive.content
|
val src = decryptAesJson(element.attr("data-src"), srcKey).jsonPrimitive.content
|
||||||
|
|
|
@ -89,7 +89,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("DokkoManga", "https://dokkomanga.com", "es", overrideVersionCode = 1),
|
SingleLang("DokkoManga", "https://dokkomanga.com", "es", overrideVersionCode = 1),
|
||||||
SingleLang("Doodmanga", "https://www.doodmanga.com", "th"),
|
SingleLang("Doodmanga", "https://www.doodmanga.com", "th"),
|
||||||
SingleLang("DoujinHentai", "https://doujinhentai.net", "es", isNsfw = true, overrideVersionCode = 1),
|
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("DragonTranslation.net", "https://dragontranslation.net", "es", isNsfw = true, className = "DragonTranslationNet"),
|
||||||
SingleLang("Drake Scans", "https://drakescans.com", "en", overrideVersionCode = 4),
|
SingleLang("Drake Scans", "https://drakescans.com", "en", overrideVersionCode = 4),
|
||||||
SingleLang("Dream Manga", "https://www.swarmmanga.com", "en", overrideVersionCode = 3),
|
SingleLang("Dream Manga", "https://www.swarmmanga.com", "en", overrideVersionCode = 3),
|
||||||
|
|
Loading…
Reference in New Issue