From 3446cc572aeb4ba10880ba4908d70388c52c224c Mon Sep 17 00:00:00 2001 From: Riztard Lanthorn Date: Thu, 13 Oct 2022 19:49:31 +0700 Subject: [PATCH] KomikIndoID: fix chapter images (#13829) Closes #13815 --- src/id/komikindoid/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/id/komikindoid/build.gradle b/src/id/komikindoid/build.gradle index 1cd421178..802b5f847 100644 --- a/src/id/komikindoid/build.gradle +++ b/src/id/komikindoid/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'KomikIndoID' pkgNameSuffix = 'id.komikindoid' extClass = '.KomikIndoID' - extVersionCode = 6 + extVersionCode = 7 } apply from: "$rootDir/common.gradle" diff --git a/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt b/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt index 2ddc265ef..2eb0d4b7d 100644 --- a/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt +++ b/src/id/komikindoid/src/eu/kanade/tachiyomi/extension/id/komikindoid/KomikIndoID.kt @@ -178,7 +178,7 @@ class KomikIndoID : ParsedHttpSource() { val pages = mutableListOf() var i = 0 document.select("div.imgch img").forEach { element -> - val url = element.attr("src") + val url = element.attr("onError").substringAfter("src='").substringBefore("';") i++ if (url.isNotEmpty()) { pages.add(Page(i, "", url))