Skip to content

Commit 7c6f7b2

Browse files
committed
Doc tweaks and changelog for #1641 (fix #1621)
1 parent 8c35a24 commit 7c6f7b2

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

docs/changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ The new features:
2323
* :doc:`/plugins/plexupdate`: A new ``library_name`` option allows you to select
2424
which Plex library to update. :bug:`1572` :bug:`1595`
2525
* Add new `include` config option to allow including external config files.
26+
* :doc:`/plugins/zero`: The plugin can now use a "whitelist" policy as an
27+
alternative to the (default) "blacklist" mode. Thanks to :user:`adkow`.
28+
:bug:`1621` :bug:`1641`
29+
2630

2731
Fixes:
2832

docs/plugins/zero.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ The ``zero`` plugin allows you to null fields in files' metadata tags. Fields
55
can be nulled unconditionally or conditioned on a pattern match. For example,
66
the plugin can strip useless comments like "ripped by MyGreatRipper."
77

8+
The plugin can work in one of two modes. The first mode, the default, is a
9+
blacklist, where you choose the tags you want to remove. The second mode is a
10+
whitelist, where you instead specify the tags you want to keep.
11+
812
To use the ``zero`` plugin, enable the plugin in your configuration
913
(see :ref:`using-plugins`).
1014

@@ -20,7 +24,7 @@ fields to nullify and the conditions for nullifying them:
2024
embedded in the media file.
2125
* Set ``keep_fields`` to *invert* the logic of the plugin. Only these fields
2226
will be kept; other fields will be removed. Remember to set only
23-
``fields`` or ``keep_fields``, not both!
27+
``fields`` or ``keep_fields``---not both!
2428
* To conditionally filter a field, use ``field: [regexp, regexp]`` to specify
2529
regular expressions.
2630
* By default this plugin only affects files' tags ; the beets database is left
@@ -34,10 +38,6 @@ For example::
3438
genre: [rnb, 'power metal']
3539
update_database: true
3640

37-
The plugin can work in one of two modes. The first mode, the default,
38-
is a blacklist, where you choose the tags you want to remove. The second mode
39-
is a whitelist where you instead specify the tags you want to keep.
40-
4141
If a custom pattern is not defined for a given field, the field will be nulled
4242
unconditionally.
4343

0 commit comments

Comments
 (0)