add 'category-map' option

primarily to achieve some form of backwards compatibility for
922c296482
This commit is contained in:
Mike Fährmann
2025-05-30 15:24:52 +02:00
parent 922c296482
commit 783f1c1b11
4 changed files with 42 additions and 0 deletions

View File

@@ -7484,6 +7484,22 @@ Description
or by `extractor.modules`_.
extractor.category-map
----------------------
Type
``object`` (`category` -> `category`)
Default
.. code:: json
{
"coomerparty": "coomer",
"kemonoparty": "kemono",
"koharu" : "schalenetwork"
}
Description
A JSON ``object`` mapping category names to their replacements.
globals
-------
Type

View File

@@ -79,6 +79,11 @@
"actions": [],
"input" : null,
"netrc" : false,
"category-map": {
"coomerparty": "coomer",
"kemonoparty": "kemono",
"koharu" : "schalenetwork"
},
"extension-map": {
"jpeg": "jpg",
"jpe" : "jpg",