add 'pixiv-novel' compat categories (#7746)

This commit is contained in:
Mike Fährmann
2025-07-10 23:23:06 +02:00
parent 096bc6f784
commit 267661680c
3 changed files with 15 additions and 2 deletions

View File

@@ -58,7 +58,12 @@ class Extractor():
self.kwdict = {}
if self.category in CATEGORY_MAP:
self.category = CATEGORY_MAP[self.category]
catsub = f"{self.category}:{self.subcategory}"
if catsub in CATEGORY_MAP:
self.category, self.subcategory = CATEGORY_MAP[catsub]
else:
self.category = CATEGORY_MAP[self.category]
self._cfgpath = ("extractor", self.category, self.subcategory)
self._parentdir = ""