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

pull/5591/head
Mike Fährmann 4 months ago
parent 5b6b5dd81b
commit f178839fc2
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -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

Loading…
Cancel
Save