| 1 |
MPDUpdate Plugin |
| 2 |
================ |
| 3 |
|
| 4 |
``mpdupdate`` is a very simple plugin for beets that lets you automatically |
| 5 |
update MPD_'s index whenever you change your beets library. |
| 6 |
|
| 7 |
.. _mpd: https://www.musicpd.org/ |
| 8 |
|
| 9 |
To use ``mpdupdate`` plugin, enable it in your configuration (see |
| 10 |
:ref:`using-plugins`). Then, you'll probably want to configure the specifics of |
| 11 |
your MPD server. You can do that using an ``mpd:`` section in your |
| 12 |
``config.yaml``, which looks like this: |
| 13 |
|
| 14 |
:: |
| 15 |
|
| 16 |
mpd: |
| 17 |
host: localhost |
| 18 |
port: 6600 |
| 19 |
password: seekrit |
| 20 |
|
| 21 |
With that all in place, you'll see beets send the "update" command to your MPD |
| 22 |
server every time you change your beets library. |
| 23 |
|
| 24 |
If you want to communicate with MPD over a Unix domain socket instead over TCP, |
| 25 |
just give the path to the socket in the filesystem for the ``host`` setting. |
| 26 |
(Any ``host`` value starting with a slash or a tilde is interpreted as a domain |
| 27 |
socket.) |
| 28 |
|
| 29 |
Configuration |
| 30 |
------------- |
| 31 |
|
| 32 |
The available options under the ``mpd:`` section are: |
| 33 |
|
| 34 |
- **host**: The MPD server name. Default: The ``$MPD_HOST`` environment variable |
| 35 |
if set, falling back to ``localhost`` otherwise. |
| 36 |
- **port**: The MPD server port. Default: The ``$MPD_PORT`` environment variable |
| 37 |
if set, falling back to 6600 otherwise. |
| 38 |
- **password**: The MPD server password. Default: None. |