Debian Codegraph @

docs/plugins/subsonicupdate.rst

raw
1 SubsonicUpdate Plugin
2 =====================
3
4 ``subsonicupdate`` is a very simple plugin for beets that lets you automatically
5 update Subsonic_'s index whenever you change your beets library.
6
7 .. _subsonic: https://www.subsonic.org/pages/index.jsp
8
9 To use ``subsonicupdate`` plugin, enable it in your configuration (see
10 :ref:`using-plugins`). Then, you'll probably want to configure the specifics of
11 your Subsonic server. You can do that using a ``subsonic:`` section in your
12 ``config.yaml``, which looks like this:
13
14 ::
15
16 subsonic:
17 url: https://example.com:443/subsonic
18 user: username
19 pass: password
20 auth: token
21
22 With that all in place, this plugin will send a REST API call to your Subsonic
23 server every time you change your beets library. Due to a current limitation of
24 the API, all libraries visible to that user will be scanned.
25
26 If the :doc:`/plugins/smartplaylist` is used, creating or changing any playlist
27 will trigger a Subsonic update as well.
28
29 This plugin requires Subsonic with an active Premium license (or active trial)
30 or any other `Subsonic API compatible`_ server implementing the ``startScan``
31 endpoint.
32
33 .. _subsonic api compatible: https://www.subsonic.org/pages/api.jsp
34
35 Configuration
36 -------------
37
38 The available options under the ``subsonic:`` section are:
39
40 - **url**: The Subsonic server resource. Default: ``http://localhost:4040``
41 - **user**: The Subsonic user. Default: ``admin``
42 - **pass**: The Subsonic user password. (This may either be a clear-text
43 password or hex-encoded with the prefix ``enc:``.) Default: ``admin``
44 - **auth**: The authentication method. Possible choices are ``token`` or
45 ``password``. ``token`` authentication is preferred to avoid sending cleartext
46 password.