From d3e44e899da58c435c0b1664285444a894ef54b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 13 Dec 2019 18:42:04 +0100 Subject: [PATCH] raise NotFoundErrors for 404 responses in GalleryExtractors --- gallery_dl/extractor/common.py | 2 +- gallery_dl/extractor/kissmanga.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index 95a81112..a1a48902 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -302,7 +302,7 @@ class GalleryExtractor(Extractor): def items(self): self.login() - page = self.request(self.gallery_url).text + page = self.request(self.gallery_url, notfound=self.subcategory).text data = self.metadata(page) imgs = self.images(page) diff --git a/gallery_dl/extractor/kissmanga.py b/gallery_dl/extractor/kissmanga.py index bb89f93d..7151de0b 100644 --- a/gallery_dl/extractor/kissmanga.py +++ b/gallery_dl/extractor/kissmanga.py @@ -19,9 +19,9 @@ import re class RedirectMixin(): """Detect and handle redirects to CAPTCHA pages""" - def request(self, url): + def request(self, url, **kwargs): while True: - response = Extractor.request(self, url) + response = Extractor.request(self, url, **kwargs) if not response.history or "/AreYouHuman" not in response.url: return response if self.config("captcha", "stop") == "wait":