KomikIndoID: fix chapter images (#13829)

Closes #13815
This commit is contained in:
Riztard Lanthorn 2022-10-13 19:49:31 +07:00 committed by GitHub
parent 4e46d33930
commit 3446cc572a
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 = 'KomikIndoID' extName = 'KomikIndoID'
pkgNameSuffix = 'id.komikindoid' pkgNameSuffix = 'id.komikindoid'
extClass = '.KomikIndoID' extClass = '.KomikIndoID'
extVersionCode = 6 extVersionCode = 7
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -178,7 +178,7 @@ class KomikIndoID : ParsedHttpSource() {
val pages = mutableListOf<Page>() val pages = mutableListOf<Page>()
var i = 0 var i = 0
document.select("div.imgch img").forEach { element -> document.select("div.imgch img").forEach { element ->
val url = element.attr("src") val url = element.attr("onError").substringAfter("src='").substringBefore("';")
i++ i++
if (url.isNotEmpty()) { if (url.isNotEmpty()) {
pages.add(Page(i, "", url)) pages.add(Page(i, "", url))