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:
parent
4cb49cfd76
commit
0a6487afe8
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user