[exhentai] fix detection of invalid gallery keys
This commit is contained in:
@@ -62,7 +62,7 @@ class ExhentaiGalleryExtractor(Extractor):
|
|||||||
page = response.text
|
page = response.text
|
||||||
if response.status_code == 404 and "Gallery Not Available" in page:
|
if response.status_code == 404 and "Gallery Not Available" in page:
|
||||||
raise exception.AuthorizationError()
|
raise exception.AuthorizationError()
|
||||||
if page.startswith(("\ufeffKey missing", "\ufeffGallery not found")):
|
if page.startswith(("Key missing", "Gallery not found")):
|
||||||
raise exception.NotFoundError("gallery")
|
raise exception.NotFoundError("gallery")
|
||||||
data = self.get_job_metadata(page)
|
data = self.get_job_metadata(page)
|
||||||
self.count = int(data["count"])
|
self.count = int(data["count"])
|
||||||
|
|||||||
Reference in New Issue
Block a user