Skip to main content
Contributor I
Feb 25, 2013 7:29 AM UTC

Feature Request: Export and Import Sonos Playlists

Like many users, we use Sonos in two different houses. We have two NAS's of music that I'm planning on keeping synchronized with RSYNC. What doesn't sync or cant get exported are Sonos Playlists. It would be great to be able to ad-hoc export them and then to import them as well. Using the UPnP interface, I've noted a Java program that can export playlists, but importing them is a bit troublesome. It would be great to have this feature.
This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

216 replies

Lyricist I
Jan 8, 2016 8:13 PM UTC
I have written a Python script that will backup and restore Sonos playlists. It is located at here. It uses the SoCo Python module to communicate with the speakers. It has been tested on GNU/Linux and MS-Windows.

I have added another parameter to your python script to export title, creator and album to the XSPF file. This exported playlists you can then add to Soundizz panel "Playlist file" and import to other music services like Deezer, Spotify etc. It is available here and I have started a pull request to merge it into spl.

Export all playlists:
spl.py -X -d
Export one playlist:
spl.py -x 90sRock -d
Sometimes you need to add one of your Sonos IPs with addtitonal parameter -I, example: "spl.py -X -d -I 192.168.1.38"
Translate
Lyricist I
Jan 10, 2016 8:30 AM UTC
I have written a Python script that will backup and restore Sonos playlists. It is located at here. It uses the SoCo Python module to communicate with the speakers. It has been tested on GNU/Linux and MS-Windows.

I have added another parameter to your python script to export title, creator and album to the XSPF file. This exported playlists you can then add to Soundizz panel "Playlist file" and import to other music services like Deezer, Spotify etc. It is available here and I have started a pull request to merge it into spl.

Export all playlists:
spl.py -X -d
Export one playlist:
spl.py -x 90sRock -d
Sometimes you need to add one of your Sonos IPs with addtitonal parameter -I, example: "spl.py -X -d -I 192.168.1.38"


I've just built a tool to take the output of spl, and convert it into a Spotify playlist, which you can simply then copy/paste into the Spotify app.
Feedback welcome:

https://github.com/joffotron/xspf2spotify
Translate
World-Class Superstar
Jan 10, 2016 8:35 AM UTC
I've just built a tool to take the output of spl, and convert it into a Spotify playlist, which you can simply then copy/paste into the Spotify app
As I've written before: it's a bloody shame Sonos is unable to assist users in backing-up and editing their playlists. Apparently this is possible by using special tools. In what way would it be possible for someone like me, who doesn't know the first thing about Python, to take advantage of your work?
Translate
Lyricist I
Jan 10, 2016 2:04 PM UTC
Playlist import/export is pretty fundamental functionality, I agree. It's also clear they'll never do it.

@beynym, to complicate things, my script was written in ruby.
If you're on OSX or Linux, then the instructions to use it are (kinda) simple: On a terminal do

gem install xspf2spotify
xspf2spotify you-playlist-file.xspf > spotify-playlist.txt
(and then copy and paste that into Spotify).

However you need to get the playlist exported to xspf format using the spl tool first.

... and on Windows getting Ruby and Python set up is a bit trickier too. So yeah, it kinda sucks.
Translate
World-Class Superstar
Jan 10, 2016 2:07 PM UTC
So yeah, it kinda sucks.
😞
Translate
phobden
Trending Lyricist I
Feb 17, 2016 9:49 AM UTC
Import export playlists is a must have for me
Translate
World-Class Superstar
Mar 21, 2016 11:31 AM UTC
a good idea, and we've passed it to the development team as a suggestion, but we don't have any update to share on its status. As soon as there's news we'll let everyone know, but there isn't currently anything to share.
Hello Ryan S, it's almost been a year since your last note on the subject of being able to backup and/or edit Sonos playlists. Do you have any recent news to share, maybe?
Translate
Ryan S
Retired Sonos Staff
Mar 24, 2016 5:43 PM UTC
a good idea, and we've passed it to the development team as a suggestion, but we don't have any update to share on its status. As soon as there's news we'll let everyone know, but there isn't currently anything to share.
Hello Ryan S, it's almost been a year since your last note on the subject of being able to backup and/or edit Sonos playlists. Do you have any recent news to share, maybe?


Hey Beynym,

Thanks for asking. Unfortunately there isn't any news right now around this feature, but I'll knock on a few doors for you and remind the team there's still interest in this feature. As you know, we don't talk about what's being developed or slated for the future, but if there's any news around this which can be shared we'll be sure to let everyone know.
Translate
Mark good posts by pressing the like button, and select the best answer on questions you've asked to help others find solutions.
World-Class Superstar
Mar 24, 2016 5:52 PM UTC
Unfortunately there isn't any news right now around this feature, but I'll knock on a few doors for you and remind the team there's still interest in this feature.
I can (of course) only speak for myself and I have to say I'm sorry to find this feature on the back burner. I keep hoping, though.
Translate
Lyricist I
Mar 28, 2016 7:02 PM UTC
Lost 3 of 4 yeard of collecting tracks with sonos playlists. Really hate them for this. Overthinking to sell the stuff. I know, they dont care.
Translate