1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 11:12:40 +01:00

[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
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

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"])