With the death of Google Play Music I needed another way of managing my music library and playing it through our Sonos system. We opted to go with Plex and in general it has been a good experience.
Plex
We have a Mac Mini hooked up to our TV for those times we want to watch something on YouTube or some other service that our not-very-smart TV doesn’t support. This was clearly the logical choice for the Plex server as it is always on and has worked really well.
I keep a copy of my music on my main laptop. Despite not using Music (formerly iTunes) to play music, I use it to manage my music on the filesystem. When I purchase music (now from Bandcamp or Amazon if I can’t find it there), I import it into Music and then run an rsync script to refresh the copy on the Mac Mini. Plex automatically picks up the changes and my music is ready for playing.
After some work I was able to import my playlists from Google Play Music (GPM) into Plex as well. See my GPM playlist reconstructor and Plex playlist importer gists for some python code to help get you going in the right direction.
Now I can access music, including all of my playlists, from my phone and any web browser.
Sonos
Being able to play my music through our Sonos system is one of my primary use cases and one of the reasons why YouTube Music is such a poor substitute for Google Play Music. Plex integrates nicely with Sonos without requiring a Plex Pass.
When I first got Plex and Sonos connected two months ago everything worked perfectly. Then a few weeks ago Sonos stopped reliably finding my music which was incredibly frustrating. When the Sonos couldn’t see the Plex library I was still able to access the library from the Plex mobile app and the web interface. Indeed, everything except Sonos seemed happy to talk to the library.
We did all of the usual things like rebooting the devices. I followed the Plex and Sonos troubleshooting docs both from Plex and from Sonos. I even tried upgrading the Sonos system from S1 to S2 to no avail.
Eventually I found this Plex on Sonos forum post which goes into a lot of details about the nuances of how the two devices connect. We had a 9-year-old Netgear WNDR4500 wireless router that in theory supported UPnP but it didn’t seem to be working to allow Sonos to reliably access the Plex library. I set up a manual port forward which seemed to make things slightly more reliable but didn’t fix the problem.
Eventually out of frustration I bought a brand new TP-Link AX1800 wireless router to replace the Netgear and suddenly everything just started working and has been rock-solid for a week now. No special configuration & no fuss.
So if you’re having trouble getting your Sonos to talk to your Plex library and are using an old wireless router, consider upgrading it.
Hi Casey,
Do you have any additional details on the rsync from iTunes to Plex? I’m considering doing something like this as I’d like to have easier access to music than futzing with my iPhone or MacBook..
Nick
LikeLiked by 1 person
err and a second comment because I forgot to click the notify me of comments via email checkbox.
LikeLike
I have a shell script that I created that will run the following rsync command (babbage is the name of the MacMini):
rsync -av –delete /Users/cpeel/Music/iTunes/ babbage.local:/Users/cpeel/Music/iTunes
When I add new music to my iTunes library I just run the script and it makes the contents of the iTunes directory on babbage match the one from my local computer. Plex is configured to serve that directory as a library.
Note that I don’t use iTunes on the MacMini and I’m not sure how iTunes would like its metadata being overwritten like that from another computer. You could put the contents in another directory on the Plex system if you wanted.
LikeLike