support 'filter' option for post processors (#1460)

This commit is contained in:
Mike Fährmann
2021-06-04 18:08:08 +02:00
parent 4cf40434d7
commit 3cbbefd4ed
10 changed files with 47 additions and 19 deletions

View File

@@ -2936,11 +2936,17 @@ Example
"name" : "zip",
"compression": "store",
"extension" : "cbz",
"filter" : "extension not in ('zip', 'rar')",
"whitelist" : ["mangadex", "exhentai", "nhentai"]
}
Description
An ``object`` containing a ``"name"`` attribute specifying the
post-processor type, as well as any of its `options <Postprocessor Options_>`__.
It is possible to set a ``"filter"`` expression similar to
`image-filter <extractor.*.image-filter_>`_ to only run a post-processor
condionally.
It is also possible set a ``"whitelist"`` or ``"blacklist"`` to
only enable or disable a post-processor for the specified
extractor categories.