Rawdevart pageListParse update (#2047)
* pageListParse * Update build.gradle
This commit is contained in:
parent
ff8f8f3d76
commit
f03a5c9469
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: Rawdevart'
|
||||
pkgNameSuffix = 'ja.rawdevart'
|
||||
extClass = '.Rawdevart'
|
||||
extVersionCode = 2
|
||||
extVersionCode = 3
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue