1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2025-01-31 19:51:34 +01:00

[exhentai] fix multi-page viewer detection (#4969)

This commit is contained in:
Mike Fährmann 2024-05-11 18:32:52 +02:00
parent 5b6b5dd81b
commit f178839fc2
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -441,7 +441,7 @@ class ExhentaiGalleryExtractor(ExhentaiExtractor):
raise exception.AuthorizationError()
if page.startswith(("Key missing", "Gallery not found")):
raise exception.NotFoundError("gallery")
if "hentai.org/mpv/" in page:
if page.count("hentai.org/mpv/") > 1:
self.log.warning("Enabled Multi-Page Viewer is not supported")
return page