[exhentai] fix blank page detection
This commit is contained in:
@@ -50,7 +50,7 @@ class ExhentaiExtractor(Extractor):
|
|||||||
|
|
||||||
def request(self, url, **kwargs):
|
def request(self, url, **kwargs):
|
||||||
response = Extractor.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")
|
self.log.info("blank page")
|
||||||
raise exception.AuthorizationError()
|
raise exception.AuthorizationError()
|
||||||
return response
|
return response
|
||||||
|
|||||||
Reference in New Issue
Block a user