diff --git a/src/all/mangabox/build.gradle b/src/all/mangabox/build.gradle index 10e48a2d8..af3f6de7d 100644 --- a/src/all/mangabox/build.gradle +++ b/src/all/mangabox/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'MangaBox (Mangakakalot and others)' pkgNameSuffix = 'all.mangabox' extClass = '.MangaBoxFactory' - extVersionCode = 23 + extVersionCode = 24 libVersion = '1.2' } diff --git a/src/all/mangabox/src/eu/kanade/tachiyomi/extension/all/mangabox/MangaBox.kt b/src/all/mangabox/src/eu/kanade/tachiyomi/extension/all/mangabox/MangaBox.kt index 324d60ad3..e793a80bd 100644 --- a/src/all/mangabox/src/eu/kanade/tachiyomi/extension/all/mangabox/MangaBox.kt +++ b/src/all/mangabox/src/eu/kanade/tachiyomi/extension/all/mangabox/MangaBox.kt @@ -234,16 +234,19 @@ abstract class MangaBox( open val pageListSelector = "div#vungdoc img, div.container-chapter-reader img" override fun pageListParse(document: Document): List { - return document.select(pageListSelector).mapIndexed { i, element -> - val url = element.attr("abs:src").let { src -> - if (src.startsWith("https://convert_image_digi.mgicdn.com")) { - "https://images.weserv.nl/?url=" + src.substringAfter("//") - } else { - src + return document.select(pageListSelector) + // filter out bad elements for mangakakalots + .filterNot { it.attr("src").endsWith("log") } + .mapIndexed { i, element -> + val url = element.attr("abs:src").let { src -> + if (src.startsWith("https://convert_image_digi.mgicdn.com")) { + "https://images.weserv.nl/?url=" + src.substringAfter("//") + } else { + src + } } + Page(i, document.location(), url) } - Page(i, document.location(), url) - } } override fun imageRequest(page: Page): Request {