[exhentai] fix detection of invalid gallery keys

This commit is contained in:
Mike Fährmann
2017-02-15 03:36:46 +01:00
parent 4cb49cfd76
commit 0a6487afe8

View File

@@ -62,7 +62,7 @@ class ExhentaiGalleryExtractor(Extractor):
page = response.text
if response.status_code == 404 and "Gallery Not Available" in page:
raise exception.AuthorizationError()
if page.startswith(("\ufeffKey missing", "\ufeffGallery not found")):
if page.startswith(("Key missing", "Gallery not found")):
raise exception.NotFoundError("gallery")
data = self.get_job_metadata(page)
self.count = int(data["count"])