rename 'category-map' to 'config-map' (#7612)

This commit is contained in:
Mike Fährmann
2025-06-03 20:22:15 +02:00
parent 4fc719bb10
commit 99bf92364a
4 changed files with 21 additions and 16 deletions

View File

@@ -188,16 +188,8 @@ def main():
ujob = update.UpdateJob(extr)
return ujob.run()
# category remapping
cmap = config.interpolate(("extractor",), "category-map")
if cmap is None:
cmap = {
"coomerparty": "coomer",
"kemonoparty": "kemono",
"koharu" : "schalenetwork",
}
if cmap:
config.rename_categories(cmap)
# category renaming
config.remap_categories()
# extractor modules
modules = config.get(("extractor",), "modules")