From bc9417e16b6f1cfdcec5f047fb3ffa5abe93ff5f Mon Sep 17 00:00:00 2001 From: len Date: Thu, 6 Apr 2017 20:23:03 +0200 Subject: [PATCH] Notify licensed content in mangahere --- .../eu/kanade/tachiyomi/source/online/english/Mangahere.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/source/online/english/Mangahere.kt b/app/src/main/java/eu/kanade/tachiyomi/source/online/english/Mangahere.kt index 74b4411e3..66d76d4e1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/source/online/english/Mangahere.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/source/online/english/Mangahere.kt @@ -152,6 +152,11 @@ class Mangahere : ParsedHttpSource() { } override fun pageListParse(document: Document): List { + val licensedError = document.select(".mangaread_error > .mt10").first() + if (licensedError != null) { + throw Exception(licensedError.text()) + } + val pages = mutableListOf() document.select("select.wid60").first()?.getElementsByTag("option")?.forEach { pages.add(Page(pages.size, it.attr("value")))