Debian Codegraph @

docs/plugins/metasync.rst

raw
1 MetaSync Plugin
2 ===============
3
4 This plugin provides the ``metasync`` command, which lets you fetch certain
5 metadata from other sources: for example, your favorite audio player.
6
7 Currently, the plugin supports synchronizing with the Amarok_ music player, and
8 with iTunes_. It can fetch the rating, score, first-played date, last-played
9 date, play count, and track uid from Amarok.
10
11 .. _amarok: https://amarok.kde.org/
12
13 .. _itunes: https://www.apple.com/itunes/
14
15 Installation
16 ------------
17
18 Enable the ``metasync`` plugin in your configuration (see :ref:`using-plugins`).
19
20 To synchronize with Amarok, you'll need the dbus-python_ library. In such case,
21 install ``beets`` with ``metasync`` extra
22
23 .. code-block:: bash
24
25 pip install "beets[metasync]"
26
27 .. _dbus-python: https://dbus.freedesktop.org/releases/dbus-python/
28
29 Configuration
30 -------------
31
32 To configure the plugin, make a ``metasync:`` section in your configuration
33 file. The available options are:
34
35 - **source**: A list of comma-separated sources to fetch metadata from. Set this
36 to "amarok" or "itunes" to enable synchronization with that player. Default:
37 empty
38
39 The follow subsections describe additional configure required for some players.
40
41 itunes
42 ~~~~~~
43
44 The path to your iTunes library **xml** file has to be configured, e.g.:
45
46 ::
47
48 metasync:
49 source: itunes
50 itunes:
51 library: ~/Music/iTunes Library.xml
52
53 Please note the indentation.
54
55 Usage
56 -----
57
58 Run ``beet metasync QUERY`` to fetch metadata from the configured list of
59 sources.
60
61 The command has a few command-line options:
62
63 - To preview the changes that would be made without applying them, use the
64 ``-p`` (``--pretend``) flag.
65 - To specify temporary sources to fetch metadata from, use the ``-s``
66 (``--source``) flag with a comma-separated list of a sources.