| 1 |
Subsonic Playlist Plugin |
| 2 |
======================== |
| 3 |
|
| 4 |
The ``subsonicplaylist`` plugin allows to import playlists from a subsonic |
| 5 |
server. This is done by retrieving the track info from the subsonic server, |
| 6 |
searching for them in the beets library, and adding the playlist names to the |
| 7 |
``subsonic_playlist`` tag of the found items. The content of the tag has the |
| 8 |
format: |
| 9 |
|
| 10 |
subsonic_playlist: ";first playlist;second playlist;" |
| 11 |
|
| 12 |
To get all items in a playlist use the query ``;playlist name;``. |
| 13 |
|
| 14 |
Command Line Usage |
| 15 |
------------------ |
| 16 |
|
| 17 |
To use the ``subsonicplaylist`` plugin, enable it in your configuration (see |
| 18 |
:ref:`using-plugins`). Then use it by invoking the ``subsonicplaylist`` command. |
| 19 |
Next, configure the plugin to connect to your Subsonic server, like this: |
| 20 |
|
| 21 |
:: |
| 22 |
|
| 23 |
subsonicplaylist: |
| 24 |
base_url: http://subsonic.example.com |
| 25 |
username: someUser |
| 26 |
password: somePassword |
| 27 |
|
| 28 |
After this you can import your playlists by invoking the ``subsonicplaylist`` |
| 29 |
command. |
| 30 |
|
| 31 |
By default only the tags of the items found for playlists will be updated. This |
| 32 |
means that, if one imported a playlist, then delete one song from it and |
| 33 |
imported the playlist again, the deleted song will still have the playlist set |
| 34 |
in its ``subsonic_playlist`` tag. To solve this problem one can use the |
| 35 |
``-d/--delete`` flag. This resets all ``subsonic_playlist`` tag before importing |
| 36 |
playlists. |
| 37 |
|
| 38 |
Here's an example configuration with all the available options and their default |
| 39 |
values: |
| 40 |
|
| 41 |
:: |
| 42 |
|
| 43 |
subsonicplaylist: |
| 44 |
base_url: "https://your.subsonic.server" |
| 45 |
delete: no |
| 46 |
playlist_ids: [] |
| 47 |
playlist_names: [] |
| 48 |
username: '' |
| 49 |
password: '' |
| 50 |
|
| 51 |
The ``base_url``, ``username``, and ``password`` options are required. |