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 74b4411e3c..66d76d4e1d 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")))