[pixiv] add workaround for 'novel-*' includes (#7746)

This commit is contained in:
Mike Fährmann
2025-07-11 16:52:00 +02:00
parent 267661680c
commit e68dc960c2
2 changed files with 9 additions and 2 deletions

View File

@@ -879,12 +879,16 @@ class Dispatch():
def initialize(self):
pass
def _dispatch_extractors(self, extractor_data, default=()):
def _dispatch_extractors(self, extractor_data, default=(), alt=None):
extractors = {
data[0].subcategory: data
for data in extractor_data
}
if alt is not None:
for sub, sub_alt in alt:
extractors[sub_alt] = extractors[sub]
include = self.config("include", default) or ()
if include == "all":
include = extractors

View File

@@ -392,7 +392,10 @@ class PixivUserExtractor(Dispatch, PixivExtractor):
(PixivFavoriteExtractor , base + "bookmarks/artworks"),
(PixivNovelBookmarkExtractor, base + "bookmarks/novels"),
(PixivNovelUserExtractor , base + "novels"),
), ("artworks",))
), ("artworks",), (
("bookmark", "novel-bookmark"),
("user" , "novel-user"),
))
class PixivArtworksExtractor(PixivExtractor):