Bacakomik: fix empty pages (#6222)

This commit is contained in:
Riztard Lanthorn 2021-03-20 22:03:01 +07:00 committed by GitHub
parent 244afd2a44
commit 9f26f2b03c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Bacakomik'
pkgNameSuffix = 'id.bacakomik'
extClass = '.Bacakomik'
extVersionCode = 2
extVersionCode = 3
libVersion = '1.2'
}

View File

@ -180,7 +180,7 @@ class Bacakomik : ParsedHttpSource() {
override fun pageListParse(document: Document): List<Page> {
val pages = mutableListOf<Page>()
var i = 0
document.select("div#chimg noscript img").forEach { element ->
document.select("div.imgch-auh img").forEach { element ->
val url = element.attr("src")
i++
if (url.isNotEmpty()) {