re-implement 'category-map' (#7612)

This commit is contained in:
Mike Fährmann
2025-06-03 22:13:39 +02:00
parent 99bf92364a
commit 75b6c8f3d8
4 changed files with 50 additions and 6 deletions

View File

@@ -317,6 +317,17 @@ def main():
args.loglevel < logging.ERROR:
input_manager.progress(pformat)
catmap = config.interpolate(("extractor",), "category-map")
if catmap:
if catmap == "compat":
catmap = {
"coomer" : "coomerparty",
"kemono" : "kemonoparty",
"schalenetwork": "koharu",
}
from .extractor import common
common.CATEGORY_MAP = catmap
# process input URLs
retval = 0
for url in input_manager: