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' appName = 'Tachiyomi: Rawdevart'
pkgNameSuffix = 'ja.rawdevart' pkgNameSuffix = 'ja.rawdevart'
extClass = '.Rawdevart' extClass = '.Rawdevart'
extVersionCode = 3 extVersionCode = 4
libVersion = '1.2' libVersion = '1.2'
} }

View File

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