diff --git a/src/id/bacakomik/build.gradle b/src/id/bacakomik/build.gradle index b0cd67ad3..9cb8023f7 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 = 4 + extVersionCode = 5 } 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 7101c4f0a..e89635e16 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 @@ -185,11 +185,14 @@ class BacaKomik : ParsedHttpSource() { override fun pageListParse(document: Document): List { val pages = mutableListOf() var i = 0 - document.select("div.imgch-auh img").forEach { element -> + val cdnUrl = "https://ttl.bakul.buzz/" // change with correct CDN url + document.getElementsByTag("img").forEach { element -> val url = element.attr("onError").substringAfter("src='").substringBefore("';") - i++ - if (url.isNotEmpty()) { - pages.add(Page(i, "", url)) + if (url.startsWith(cdnUrl)) { + i++ + if (url.isNotEmpty()) { + pages.add(Page(i, "", url)) + } } } return pages