node-sonos-http-api
node-sonos-http-api copied to clipboard
albumArt inconsistencies
There are a couple of inconsistencies with albumArtUri and absoluteAlbumArtUri
-
not all endpoints have both the regular and absolute uri available (zones vs {room}/queue)
-
in /zones currentTrack shows the resolved absoluteAlbumArtUri while nextTrack shows the /getaa Uri
Also for the regular URIs would it be possible to expose the Sonos host in one of the endpoints as you already have it available to generate the absolute URI
I've noticed the same thing. When playing a Spotify playlist, the current track's absoluteAlbumArtUri points at the artwork for the playlist, not the album. Whereas the albumArtUri looks right, but lacks the IP address. As far as I can tell, the only way to get the actual album art url would be to get the IP of the next track (providing there is one).
I'm not sure the benefit of the relative path uri.
Correct me if I'm wrong but it also seems like the only way to get the IP address is to get it from the next track, but if you're on the last track of the queue I'd assume you have no ability to get the IP address, so this is also a problem. Having a way to get the IP of a device in the room would be helpful.
Having a way to get the IP of a device in the room would be helpful.
It seems you don't even need the IP of a device involved in playing in that room/group - just any Sonos device on the network - they can all load the album art correctly. Including device IPs in the zone response would definitely be handy.
I've noticed the same thing. When playing a Spotify playlist, the current track's absoluteAlbumArtUri points at the artwork for the playlist, not the album. Whereas the albumArtUri looks right, but lacks the IP address. As far as I can tell, the only way to get the actual album art url would be to get the IP of the next track (providing there is one).
This seems to be a result of the dependency node-sonos-discovery
, and this commit is responsible for letting the playlist image trump the current tracks album artwork. It looks deliberate, but I don't understand the reasoning behind it.