| 1 |
KodiUpdate Plugin |
| 2 |
================= |
| 3 |
|
| 4 |
The ``kodiupdate`` plugin lets you automatically update Kodi_'s music library |
| 5 |
whenever you change your beets library. |
| 6 |
|
| 7 |
To use ``kodiupdate`` plugin, enable it in your configuration (see |
| 8 |
:ref:`using-plugins`). Then, you'll want to configure the specifics of your Kodi |
| 9 |
host. You can do that using a ``kodi:`` section in your ``config.yaml``, which |
| 10 |
looks like this: |
| 11 |
|
| 12 |
:: |
| 13 |
|
| 14 |
kodi: |
| 15 |
host: localhost |
| 16 |
port: 8080 |
| 17 |
user: kodi |
| 18 |
pwd: kodi |
| 19 |
|
| 20 |
To update multiple Kodi instances, specify them as an array: |
| 21 |
|
| 22 |
:: |
| 23 |
|
| 24 |
kodi: |
| 25 |
- host: x.x.x.x |
| 26 |
port: 8080 |
| 27 |
user: kodi |
| 28 |
pwd: kodi |
| 29 |
- host: y.y.y.y |
| 30 |
port: 8081 |
| 31 |
user: kodi2 |
| 32 |
pwd: kodi2 |
| 33 |
|
| 34 |
To use the ``kodiupdate`` plugin, first enable it in your configuration (see |
| 35 |
:ref:`using-plugins`). Then, install ``beets`` with ``kodiupdate`` extra |
| 36 |
|
| 37 |
.. code-block:: bash |
| 38 |
|
| 39 |
pip install "beets[kodiupdate]" |
| 40 |
|
| 41 |
You'll also need to enable JSON-RPC in Kodi. |
| 42 |
|
| 43 |
In Kodi's interface, navigate to System/Settings/Network/Services and choose |
| 44 |
"Allow control of Kodi via HTTP." |
| 45 |
|
| 46 |
With that all in place, you'll see beets send the "update" command to your Kodi |
| 47 |
host every time you change your beets library. |
| 48 |
|
| 49 |
.. _kodi: https://kodi.tv/ |
| 50 |
|
| 51 |
Configuration |
| 52 |
------------- |
| 53 |
|
| 54 |
The available options under the ``kodi:`` section are: |
| 55 |
|
| 56 |
- **host**: The Kodi host name. Default: ``localhost`` |
| 57 |
- **port**: The Kodi host port. Default: 8080 |
| 58 |
- **user**: The Kodi host user. Default: ``kodi`` |
| 59 |
- **pwd**: The Kodi host password. Default: ``kodi`` |