From 366b0750a89932421f0ec3a425503a2466b1ebe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 18 Jan 2026 22:16:18 +0100 Subject: [PATCH] [common] use extractor subcategory for 'notfound=True' --- gallery_dl/extractor/2chen.py | 4 ++-- gallery_dl/extractor/ao3.py | 2 +- gallery_dl/extractor/artstation.py | 4 ++-- gallery_dl/extractor/cien.py | 2 +- gallery_dl/extractor/common.py | 4 +++- gallery_dl/extractor/deviantart.py | 2 +- gallery_dl/extractor/hotleak.py | 2 +- gallery_dl/extractor/imagebam.py | 2 +- gallery_dl/extractor/patreon.py | 4 ++-- gallery_dl/extractor/seiga.py | 2 +- 10 files changed, 15 insertions(+), 13 deletions(-) diff --git a/gallery_dl/extractor/2chen.py b/gallery_dl/extractor/2chen.py index 78b0aae9..0c370382 100644 --- a/gallery_dl/extractor/2chen.py +++ b/gallery_dl/extractor/2chen.py @@ -41,7 +41,7 @@ class _2chenThreadExtractor(_2chenExtractor): board = self.groups[-2] thread = self.kwdict["thread"] = self.groups[-1] url = f"{self.root}/{board}/{thread}" - page = self.request(url, encoding="utf-8", notfound="thread").text + page = self.request(url, encoding="utf-8", notfound=True).text self.kwdict["board"], pos = text.extract( page, 'class="board">/', '/<') @@ -89,7 +89,7 @@ class _2chenBoardExtractor(_2chenExtractor): def items(self): url = f"{self.root}/{self.groups[-1]}/catalog" - page = self.request(url, notfound="board").text + page = self.request(url, notfound=True).text data = {"_extractor": _2chenThreadExtractor} for thread in text.extract_iter( page, '
', '<'),