From cd83be41c5dd2781cc6e3190e43e32df68cc9afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 25 Jan 2026 11:15:30 +0100 Subject: [PATCH] [common] allow Dispatch 'alt' extractors to use custom URLs --- gallery_dl/extractor/common.py | 7 +++++-- gallery_dl/extractor/pixiv.py | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index 8255cd2b..52f4ae04 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -931,8 +931,11 @@ class Dispatch(): } if alt is not None: - for sub, sub_alt in alt: - extractors[sub_alt] = extractors[sub] + for sub, sub_alt, url in alt: + if url is None: + extractors[sub_alt] = extractors[sub] + else: + extractors[sub_alt] = (extractors[sub][0], url) include = self.config("include", default) or () if include == "all": diff --git a/gallery_dl/extractor/pixiv.py b/gallery_dl/extractor/pixiv.py index 7d6edfad..7197cece 100644 --- a/gallery_dl/extractor/pixiv.py +++ b/gallery_dl/extractor/pixiv.py @@ -418,8 +418,8 @@ class PixivUserExtractor(Dispatch, PixivExtractor): (PixivNovelUserExtractor , base + "novels"), (PixivSketchExtractor , sketch), ), ("artworks",), ( - ("bookmark", "novel-bookmark"), - ("user" , "novel-user"), + ("bookmark", "novel-bookmark", None), + ("user" , "novel-user" , None), ))