parent
9385d11c43
commit
9aecf7e174
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'MangaOni'
|
extName = 'MangaOni'
|
||||||
extClass = '.MangaOni'
|
extClass = '.MangaOni'
|
||||||
extVersionCode = 15
|
extVersionCode = 16
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -188,7 +188,7 @@ open class MangaOni : ConfigurableSource, ParsedHttpSource() {
|
||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
val encoded = document.select("script:containsData(unicap)").firstOrNull()
|
val encoded = document.select("script:containsData(unicap)").firstOrNull()
|
||||||
?.data()?.substringAfter("'")?.substringBefore("'")?.reversed()
|
?.data()?.substringAfter("'")?.substringBefore("'")
|
||||||
?: throw Exception("unicap not found")
|
?: throw Exception("unicap not found")
|
||||||
val drop = encoded.length % 4
|
val drop = encoded.length % 4
|
||||||
val decoded = Base64.decode(encoded.dropLast(drop), Base64.DEFAULT).toString(Charset.defaultCharset())
|
val decoded = Base64.decode(encoded.dropLast(drop), Base64.DEFAULT).toString(Charset.defaultCharset())
|
||||||
|
|
Loading…
Reference in New Issue