Skip to main content
Question

How to repair Amazon Music playlists on Sonos (only tested on V1) playlists that show "The song is not encoded correctly"

  • June 30, 2026
  • 11 replies
  • 36 views

This has happened to me a couple times, and manually recreating the playlists is quite a chore.

Here is a github repo that explains why this happens, and has code to create a new working playlist from the old broken one.

Moderator edit: Link removed. Search Github for “sonos-playlist-rebuild”

11 replies

106rallye
Forum|alt.badge.img+18

@jkstill What do you mean by V1?


controlav
Forum|alt.badge.img+24
  • Lead Maestro
  • July 1, 2026

Export them to SoundIIZ then re-import them, using tools that the Mods will not let me post links to. Search the web for “sonos soundiiz export” and you should get the info.

Amazon changed their url schema, so you need to re-create them from the artist/track names.


106rallye
Forum|alt.badge.img+18
  • July 1, 2026

So this is about Sonos playlists pointing at Amazon Music? Why not just use Amazon Music playlists.


MoPac
Forum|alt.badge.img+19
  • Headliner III
  • July 1, 2026

So this is about Sonos playlists pointing at Amazon Music? Why not just use Amazon Music playlists.

I have found a strange issue with Amazon Music Unlimited user created playlists.  Sometimes I will find track(s) grayed out (unplayable).  If, within the Amazon Music app, I open the album that shows the grayed out track(s) and add them back they are again playable.  Very odd.


Stanley_4
  • Grand Maestro
  • July 1, 2026

Saving Amazon playlists as Sonos favorites works for some things but the app's insistence on naming many of the Amazon playlists I like "Top Songs" isn't helping. Also the favorites break and have to be redone too.

It would be good if Sonos and Amazon could better integrate their services but I don't see much motivation for Amazon or publicly mentioned interest from Sonos.


  • Author
  • Contributor I
  • July 1, 2026

I probably could have worded the title better.

I have a number of Sonos playlists based on tracks from Amazon Music.

Every once in a while Amazon changes the URI scheme for these tracks, and this breaks the playlist.

There is no method available from Sonos to fix this.

The ‘V1’ means these are all Version 1 Sonos devices. This method may work on Version 2+, but I have no way to test that.

The method I used to fix this is to rebuild the playlists using Python scripts.

A new playlist is built from the old one, using the new URI scheme. Some instructions are offered in the README.md in the event the format changes again.

You can find the scripts and instructions on Github

Github user: jkstill
Repo name: sonos-playlist-rebuild


  • July 1, 2026

The ‘V1’ means these are all Version 1 Sonos devices. This method may work on Version 2+, but I have no way to test that.

Do you mean your devices are running S1 vs S2? Sonos has some, but few, products that have more that one version.  But there is nothing that I know of that is V1 or Version 2+.


Airgetlam
  • July 1, 2026

Can we assume V1 really means S1 (the older version of the operating system)? There are many newer versions of Sonos speakers which only have one ‘version’/generation as well.

If it’s just a matter of rebuilding the links to Amazon Music’s changed locations of the songs, either ​@controlav ‘s method, a simple rebuild of the playlist on Sonos would do. 

The change from absolute links to relative links between a Sonos playlist and all streamers music location is a much more challenging change, I suspect. It might require (and I don’t know, users like ​@controlav would likely be more familiar with it than I) individual, per streamer, code changes.

The question I think about is why does any streaming company have to change the link that was originally expressed?


Stanley_4
  • Grand Maestro
  • July 1, 2026

Why change is a good question, for Amazon some of it seems to be trying for more consistent naming scheme. 


  • Author
  • Contributor I
  • July 1, 2026

V1 probably is equal to S1.  I have original Sonos devices, and was not interested in purchasing later versions.

In the controllers for S1, there is no option to rebuild a sonos playlist that is based on amazon music tracks.
 


Airgetlam
  • July 2, 2026

There’s no option in S2, either, which is why I mentioned what I did in my response.