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

@@ -7494,6 +7494,33 @@ Description
or by `extractor.modules`_.
extractor.category-map
----------------------
Type
* ``object`` (`category` -> `category`)
* ``string``
Example
.. code:: json
{
"danbooru": "booru",
"gelbooru": "booru"
}
Description
A JSON object mapping category names to their replacements.
Special values:
* ``"compat"``
.. code:: json
{
"coomer" : "coomerparty",
"kemono" : "kemonoparty",
"schalenetwork": "koharu"
}
extractor.config-map
--------------------
Type

View File

@@ -79,11 +79,6 @@
"actions": [],
"input" : null,
"netrc" : false,
"config-map": {
"coomerparty": "coomer",
"kemonoparty": "kemono",
"koharu" : "schalenetwork"
},
"extension-map": {
"jpeg": "jpg",
"jpe" : "jpg",
@@ -92,6 +87,14 @@
"jfi" : "jpg"
},
"category-map": {},
"config-map": {
"coomerparty": "coomer",
"kemonoparty": "kemono",
"koharu" : "schalenetwork"
},
"#": "===============================================================",
"#": "==== Site-specific Extractor Options ====================",