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'
|
appName = 'Tachiyomi: Rawdevart'
|
||||||
pkgNameSuffix = 'ja.rawdevart'
|
pkgNameSuffix = 'ja.rawdevart'
|
||||||
extClass = '.Rawdevart'
|
extClass = '.Rawdevart'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -210,12 +210,12 @@ class Rawdevart : ParsedHttpSource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
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>()
|
val pages = mutableListOf<Page>()
|
||||||
|
list.forEachIndexed { i, img ->
|
||||||
document.select("img.img-fluid.not-lazy").forEachIndexed { i, img ->
|
pages.add(Page(i, "", img))
|
||||||
pages.add(Page(i, "", img.attr("abs:data-src")))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return pages
|
return pages
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue