Rawdevart pageListParse update (#2047)

* pageListParse

* Update build.gradle
This commit is contained in:
happywillow0 2020-01-12 11:49:05 -05:00 committed by arkon
parent ff8f8f3d76
commit f03a5c9469
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Rawdevart'
pkgNameSuffix = 'ja.rawdevart'
extClass = '.Rawdevart'
extVersionCode = 2
extVersionCode = 3
libVersion = '1.2'
}

View File

@ -210,12 +210,12 @@ class Rawdevart : ParsedHttpSource() {
}
override fun pageListParse(document: Document): List<Page> {
val script = document.select("script:containsData(const pages)").html()
val list = script.substringAfter("const pages = [\"").substringBefore("\",]").split("\",\"")
val pages = mutableListOf<Page>()
document.select("img.img-fluid.not-lazy").forEachIndexed { i, img ->
pages.add(Page(i, "", img.attr("abs:data-src")))
list.forEachIndexed { i, img ->
pages.add(Page(i, "", img))
}
return pages
}