[postprocessor:metadata] implement 'mode: delete' (#2640)

This commit is contained in:
Mike Fährmann
2022-07-19 00:57:29 +02:00
parent eb68d45544
commit f3de6b7a87
3 changed files with 50 additions and 0 deletions

View File

@@ -3319,6 +3319,7 @@ Description
* ``"tags"``: ``tags`` separated by newlines
* ``"custom"``: result of applying `metadata.content-format`_
to a file's metadata dictionary
* ``"delete"``: remove metadata entries specified in `metadata.fields`_
metadata.filename
@@ -3407,6 +3408,16 @@ Description
e.g. a Tweet on Twitter or a post on Patreon.
metadata.fields
---------------
Type
``list`` of ``strings``
Example
``["blocked", "watching", "status[creator][name]"]``
Description
List of metadata field names to remove for ``"mode": "delete"``.
metadata.content-format
-----------------------
Type