Debian Codegraph @

docs/plugins/mbsync.rst

raw
1 MBSync Plugin
2 =============
3
4 This plugin provides the ``mbsync`` command, which lets you synchronize metadata
5 for albums and tracks that have external data source IDs.
6
7 This is useful for syncing your library with online data or when changing
8 configuration options that affect tag writing. If your music library already
9 contains correct tags, you can speed up the initial import by importing files
10 "as-is" and then using ``mbsync`` to write tags according to your beets
11 configuration.
12
13 Usage
14 -----
15
16 Enable the ``mbsync`` plugin in your configuration (see :ref:`using-plugins`)
17 and then run ``beet mbsync QUERY`` to fetch updated metadata for a part of your
18 collection (or omit the query to run over your whole library).
19
20 ID lookups use each item's stored ``data_source``. If a row has no
21 ``data_source``, ``mbsync`` falls back to ``MusicBrainz``.
22
23 This plugin treats albums and singletons (non-album tracks) separately. It first
24 processes all matching singletons and then proceeds on to full albums. The same
25 query is used to search for both kinds of entities.
26
27 The command has a few command-line options:
28
29 - To preview the changes that would be made without applying them, use the
30 ``-p`` (``--pretend``) flag.
31 - By default, files will be moved (renamed) according to their metadata if they
32 are inside your beets library directory. To disable this, use the ``-M``
33 (``--nomove``) command-line option.
34 - If you have the ``import.write`` configuration option enabled, then this
35 plugin will write new metadata to files' tags. To disable this, use the ``-W``
36 (``--nowrite``) option.
37 - To customize the output of unrecognized items, use the ``-f`` (``--format``)
38 option. The default output is ``format_item`` or ``format_album`` for items
39 and albums, respectively.