diff --git a/gallery_dl/extractor/exhentai.py b/gallery_dl/extractor/exhentai.py index e4d4cd96e9..8b2bd94a38 100644 --- a/gallery_dl/extractor/exhentai.py +++ b/gallery_dl/extractor/exhentai.py @@ -136,6 +136,14 @@ def items(self): if self.gallery_token: gpage = self._gallery_page() self.image_token = text.extract(gpage, 'hentai.org/s/', '"')[0] + if "hentai.org/mpv/" in gpage: + self.log.warning("Extraction with Multi-Page Viewer " + "enabled is not supported") + if not self.image_token: + self.log.error("Failed to extract image token " + "from gallery page") + self.log.debug("Page content:\n%s", gpage) + return self.wait() ipage = self._image_page() else: @@ -201,12 +209,16 @@ def image_from_page(self, page): iurl = extr('