File: mpdupdate.rst

package info (click to toggle)
beets 2.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,016 kB
  • sloc: python: 46,429; javascript: 8,018; xml: 334; sh: 261; makefile: 125
file content (38 lines) | stat: -rw-r--r-- 1,315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
MPDUpdate Plugin
================

``mpdupdate`` is a very simple plugin for beets that lets you automatically
update MPD_'s index whenever you change your beets library.

.. _mpd: https://www.musicpd.org/

To use ``mpdupdate`` plugin, enable it in your configuration (see
:ref:`using-plugins`). Then, you'll probably want to configure the specifics of
your MPD server. You can do that using an ``mpd:`` section in your
``config.yaml``, which looks like this:

::

    mpd:
        host: localhost
        port: 6600
        password: seekrit

With that all in place, you'll see beets send the "update" command to your MPD
server every time you change your beets library.

If you want to communicate with MPD over a Unix domain socket instead over TCP,
just give the path to the socket in the filesystem for the ``host`` setting.
(Any ``host`` value starting with a slash or a tilde is interpreted as a domain
socket.)

Configuration
-------------

The available options under the ``mpd:`` section are:

- **host**: The MPD server name. Default: The ``$MPD_HOST`` environment variable
  if set, falling back to ``localhost`` otherwise.
- **port**: The MPD server port. Default: The ``$MPD_PORT`` environment variable
  if set, falling back to 6600 otherwise.
- **password**: The MPD server password. Default: None.