summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/exhentai.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/exhentai.py')
-rw-r--r--gallery_dl/extractor/exhentai.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gallery_dl/extractor/exhentai.py b/gallery_dl/extractor/exhentai.py
index bccd6c8..aabfe6b 100644
--- a/gallery_dl/extractor/exhentai.py
+++ b/gallery_dl/extractor/exhentai.py
@@ -203,8 +203,8 @@ class ExhentaiGalleryExtractor(ExhentaiExtractor):
def _validate_response(response):
# declared inside 'items()' to be able to access 'data'
- if not response.history and \
- response.headers.get("content-length") == "137":
+ if not response.history and response.headers.get(
+ "content-type", "").startswith("text/html"):
self._report_limits(data)
return True