[exhentai] improve error message when temporarily banned (#5845)

This commit is contained in:
Mike Fährmann
2024-07-11 21:10:32 +02:00
parent f7383a56f8
commit 668219b36e

View File

@@ -394,6 +394,9 @@ class ExhentaiGalleryExtractor(ExhentaiExtractor):
self.original = False
return self.data["_url_1280"]
if " temporarily banned " in page:
raise exception.AuthorizationError("Temporarily Banned")
self._report_limits()
return True