parent
48f676582c
commit
5d669e79a3
@ -5,7 +5,7 @@ ext {
|
|||||||
appName = 'Tachiyomi: FoolSlide'
|
appName = 'Tachiyomi: FoolSlide'
|
||||||
pkgNameSuffix = "all.foolslide"
|
pkgNameSuffix = "all.foolslide"
|
||||||
extClass = '.FoolSlideFactory'
|
extClass = '.FoolSlideFactory'
|
||||||
extVersionCode = 15
|
extVersionCode = 16
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,9 +58,12 @@ class JaminisBox : FoolSlide("Jaimini's Box", "https://jaiminisbox.com", "en", "
|
|||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
val doc = document.toString()
|
val doc = document.toString()
|
||||||
val base64Json = doc.substringAfter("JSON.parse(atob(\"").substringBefore("\"));")
|
var jsonstr = doc.substringAfter("var pages = ").substringBefore(";")
|
||||||
val decodeJson = String(Base64.decode(base64Json, Base64.DEFAULT))
|
if (jsonstr.contains("JSON.parse")) {
|
||||||
val json = JsonParser().parse(decodeJson).asJsonArray
|
val base64Json = jsonstr.substringAfter("JSON.parse(atob(\"").substringBefore("\"));")
|
||||||
|
jsonstr = String(Base64.decode(base64Json, Base64.DEFAULT))
|
||||||
|
}
|
||||||
|
val json = JsonParser().parse(jsonstr).asJsonArray
|
||||||
val pages = mutableListOf<Page>()
|
val pages = mutableListOf<Page>()
|
||||||
json.forEach {
|
json.forEach {
|
||||||
pages.add(Page(pages.size, "", it["url"].asString))
|
pages.add(Page(pages.size, "", it["url"].asString))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user