Throw a error when the 509 gif is given when your downloading or loading a chapter from Exh and E-H

This commit is contained in:
Jobobby04 2020-11-30 13:21:56 -05:00
parent bff654eac8
commit f1a6218a4b

View File

@ -359,7 +359,7 @@ class EHentai(
it.mapIndexed { i, s ->
Page(i, s)
}
}!!
}!!.doOnNext { pages -> if (pages.any { it.url == "https://$domain/img/509.gif" }) throw Exception("Hit page limit") }
private fun fetchChapterPage(
chapter: SChapter,