diff --git a/src/id/bacakomik/build.gradle b/src/id/bacakomik/build.gradle index f52d21a28..a43631d5d 100644 --- a/src/id/bacakomik/build.gradle +++ b/src/id/bacakomik/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'BacaKomik' pkgNameSuffix = 'id.bacakomik' extClass = '.BacaKomik' - extVersionCode = 8 + extVersionCode = 9 } apply from: "$rootDir/common.gradle" diff --git a/src/id/bacakomik/src/eu/kanade/tachiyomi/extension/id/bacakomik/BacaKomik.kt b/src/id/bacakomik/src/eu/kanade/tachiyomi/extension/id/bacakomik/BacaKomik.kt index 891c1cd4e..309264382 100644 --- a/src/id/bacakomik/src/eu/kanade/tachiyomi/extension/id/bacakomik/BacaKomik.kt +++ b/src/id/bacakomik/src/eu/kanade/tachiyomi/extension/id/bacakomik/BacaKomik.kt @@ -189,7 +189,10 @@ class BacaKomik : ParsedHttpSource() { override fun pageListParse(document: Document): List { val pages = mutableListOf() var i = 0 - document.select("div:has(>img[alt*=\"Chapter\"]) img").forEach { element -> + document.select("div:has(>img[alt*=\"Chapter\"]) img").filter { element -> + val parent = element.parent() + parent != null && parent.tagName() != "noscript" + }.forEach { element -> val url = element.attr("onError").substringAfter("src='").substringBefore("';") i++ if (url.isNotEmpty()) {