Fix Rawdevart (#2306)

Update Rawdevart
This commit is contained in:
Chris Allan 2020-02-28 04:14:48 -08:00 committed by GitHub
parent a9210e81a2
commit c3cc08a133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

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

View File

@ -210,11 +210,9 @@ 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>()
list.forEachIndexed { i, img ->
pages.add(Page(i, "", img))
var pages = mutableListOf<Page>()
document.select("img.not-lazy[data-src]").forEachIndexed { i, img ->
pages.add(Page(i, "", img.attr("data-src")))
}
return pages
}