rspotify
rspotify copied to clipboard
Unavailable tracks in market are still returned by playlist_items()
Describe the bug
I use the function AuthCodeSpotify::playlist_items(...)
and I noticed that the returned list contains playlist items/tracks that are not avalaible in my current country/market. As an input to the function, I supplied my current market (=my home country). I additinally noticed that the field FullTrack::available_markets
seems to always be an empty Vec.
To Reproduce Should be clear from my explanation. You just need a spotify playlist with one available and one unavailable song in your market or the one that you use to debug. If it helps, this song is not available in my country, maybe it can help you debug: https://open.spotify.com/intl-de/track/6EkG9mwbTCmM94kueLnlPo
Expected behavior
As the spotify API states, I would expect that unavailable tracks are filtered out from the return value of the playlist_items
function. Also I expect the mentioned field to not always be an empty Vec.