[exhentai] fix blank page detection

pull/5591/head
Mike Fährmann 4 months ago
parent 90b3741643
commit 3b6f306a8b
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -50,7 +50,7 @@ class ExhentaiExtractor(Extractor):
def request(self, url, **kwargs):
response = Extractor.request(self, url, **kwargs)
if response.history and response.headers.get("Content-Length") == "0":
if "Cache-Control" not in response.headers and not response.content:
self.log.info("blank page")
raise exception.AuthorizationError()
return response

Loading…
Cancel
Save