From c6b1cfc0dcff96d6a1432e00ae1efab2dff42728 Mon Sep 17 00:00:00 2001 From: ddmgy Date: Mon, 6 Nov 2017 16:22:43 -0500 Subject: [PATCH] Fix extra (advertisement) page being added in Mangahere. (#122) --- .../eu/kanade/tachiyomi/extension/en/mangahere/Mangahere.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/en/mangahere/src/eu/kanade/tachiyomi/extension/en/mangahere/Mangahere.kt b/src/en/mangahere/src/eu/kanade/tachiyomi/extension/en/mangahere/Mangahere.kt index d0705fa23..abfb0ca24 100644 --- a/src/en/mangahere/src/eu/kanade/tachiyomi/extension/en/mangahere/Mangahere.kt +++ b/src/en/mangahere/src/eu/kanade/tachiyomi/extension/en/mangahere/Mangahere.kt @@ -183,7 +183,9 @@ class Mangahere : ParsedHttpSource() { val pages = mutableListOf() document.select("select.wid60").first()?.getElementsByTag("option")?.forEach { - pages.add(Page(pages.size, "http:" + it.attr("value"))) + if (!it.attr("value").contains("featured.html")) { + pages.add(Page(pages.size, "http:" + it.attr("value"))) + } } pages.getOrNull(0)?.imageUrl = imageUrlParse(document) return pages