SubsonicTools: Export all playlists from Subsonic Music Streamer to .m3u playlist files

Starting with version 4.7 (changelog), the Subsonic Music Streamer no longer saves playlists as .m3u files but stores the playlist information in its internal database to offer a more sophisticated playlist management (like shared and private playlists).

Before version 4.7 it was very easy to share the Subsonic playlists with other media servers that also use a directory containing .m3u files as data source (like the Logitech Media Server): Sharing a folder containing the .m3u files automatically synchronizes the playlists between the media servers.

Fortunately, the Subsonic media server offers a very well documented REST API that can be used to export playlist information amongst a lot of other functionalities.

To easily export all playlists from the Subsonic media server and save them as .m3u files in a specific destination directory I’ve written the SubsonicTools project which is available here (GitHub).

To export all playlist with SubsonicTools use the following command:

python SubsonicTools.py ExportPlaylists --url=[SUBSONIC-URL] --user=[YOUR-SUBSONIC-USER] --password=[YOUR-SUBSONIC-PASSWORD] --out=[PATH-TO-DESTINATION-DIRECTORY] --prefix=[FILE-PREFIX]

To run SubsonicTools 0.1 you need to install the Python library Requests >= 0.8.8 (follow the install instructions here).

Please note: The SubsonicTools project is in a prototype state; it was only tested with Python 2.7 and a Subsonic media server 4.7. If you find any errors, miss a feature or have any suggestions please don’t hesitate to leave a comment or to send me a private message.