Debian Codegraph @

docs/plugins/scrub.rst

raw
1 Scrub Plugin
2 ============
3
4 The ``scrub`` plugin lets you remove extraneous metadata from files' tags. If
5 you'd prefer never to see crufty tags that come from other tools, the plugin can
6 automatically remove all non-beets-tracked tags whenever a file's metadata is
7 written to disk by removing the tag entirely before writing new data. The plugin
8 also provides a command that lets you manually remove files' tags.
9
10 Automatic Scrubbing
11 -------------------
12
13 To automatically remove files' tags before writing new ones, enable ``scrub``
14 plugin in your configuration (see :ref:`using-plugins`) and install ``beets``
15 with ``scrub`` extra
16
17 .. code-block:: bash
18
19 pip install "beets[scrub]"
20
21 When importing new files (with ``import.write`` turned on) or modifying files'
22 tags with the ``beet modify`` command, beets will first strip all types of tags
23 entirely and then write the database-tracked metadata to the file.
24
25 This behavior can be disabled with the ``auto`` config option (see below).
26
27 Manual Scrubbing
28 ----------------
29
30 The ``scrub`` command provided by this plugin removes tags from files and then
31 rewrites their database-tracked metadata. To run it, just type ``beet scrub
32 QUERY`` where ``QUERY`` matches the tracks to be scrubbed. Use this command with
33 caution, however, because any information in the tags that is out of sync with
34 the database will be lost.
35
36 The ``-W`` (or ``--nowrite``) option causes the command to just remove tags but
37 not restore any information. This will leave the files with no metadata
38 whatsoever.
39
40 Configuration
41 -------------
42
43 To configure the plugin, make a ``scrub:`` section in your configuration file.
44 There is one option:
45
46 - **auto**: Enable metadata stripping during import. Default: ``yes``.