Hi,
I am using the local API via a module in the home automation system Symcon (in my understanding not relevant for the question) and experience an unexpected behaviour for Amazon Music playlist Sonos favorites.
Adding the Sonos favorites for Amazon Music and e.g. Spotify playlists in the Sonos app in the same way leads to different results when browsing the ContentDirectoryService for Sonos favorites(FV:2).
For Spotify playlist the “res” element is delivered so that the playlist can be played via the API.
For Amazon Music playlists the “res” element is returned empty, therefore no possibility to initiate the playback.
Additional difference is that the Amazon Music playlists are listed with r:type “shortcut”, while the Spotify playlists are listed as r:type “instantPlay”.
Via the Sonos App both type of playlists look and behave in the same way.
Does someone have an idea what could be the reason for the different behaviour and what I can do to get the Amazon Music playlists working?
Thanks very much!
Philip
<item id="FV:2/33"
parentID="FV:2"
restricted="false">
<dc:title>Amazon Music Example</dc:title>
<upnp:class>object.itemobject.item.sonos-favorite</upnp:class>
<r:ordinal>10</r:ordinal>
<res/>
<upnp:albumArtURI>https://m.media-amazon.com/images/I/...</upnp:albumArtURI>
<r:type>shortcut</r:type>
<r:description>Amazon Music</r:description>
<r:resMD><DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="10080044library%2Fplaylists%2F55a60971-ead0-4ec5-b4f2-786f507792f2%2F%23library_playlist" parentID="10080044library%2Fplaylists%2F55a60971-ead0-4ec5-b4f2-786f507792f2%2F%23library_playlist" restricted="true"><dc:title>Amazon Music Example</dc:title><upnp:class>object.item</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON51463_X_#Svc51463-3215b0e3-Token</desc></item></DIDL-Lite></r:resMD>
</item>
<item id="FV:2/35"
parentID="FV:2"
restricted="false">
<dc:title>Spotify Example</dc:title>
<upnp:class>object.itemobject.item.sonos-favorite</upnp:class>
<r:ordinal>11</r:ordinal>
<res protocolInfo="x-rincon-cpcontainer:*:*:*">x-rincon-cpcontainer:1006286cspotify%3Aplaylist%3A3eJIxgKsxCBw2psxVtjg0H?sid=9&flags=10348&sn=7</res>
<upnp:albumArtURI>https://mosaic.scdn.co/640/...</upnp:albumArtURI>
<r:type>instantPlay</r:type>
<r:description>Spotify</r:description>
<r:resMD><DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="1006286cspotify%3Aplaylist%3A3eJIxgKsxCBw2psxVtjg0H" parentID="1006286cspotify%3Aplaylist%3A3eJIxgKsxCBw2psxVtjg0H" restricted="true"><dc:title>Spotify Example</dc:title><upnp:class>object.container.playlistContainer</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON2311_X_#Svc2311-5423a0dc-Token</desc></item></DIDL-Lite></r:resMD>
</item>