From 668219b36e52efb39dd1417eccef4babd0749027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 11 Jul 2024 21:10:32 +0200 Subject: [PATCH] [exhentai] improve error message when temporarily banned (#5845) --- gallery_dl/extractor/exhentai.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gallery_dl/extractor/exhentai.py b/gallery_dl/extractor/exhentai.py index 180540352d..1b4f995326 100644 --- a/gallery_dl/extractor/exhentai.py +++ b/gallery_dl/extractor/exhentai.py @@ -394,6 +394,9 @@ def _validate_response(self, response): self.original = False return self.data["_url_1280"] + if " temporarily banned " in page: + raise exception.AuthorizationError("Temporarily Banned") + self._report_limits() return True