[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

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