> Would you have an example playlist
The playlist 5oPKSs2zPrrzQTIp2lliIP shows several tracks with a
restriction on market NL.

> I've also looked into "is_playable". Would that give you the same
expected result?
That was the first I tried. I checked this in the web console of
Spotify.

The result was promising:
{
"items": [
{
"track": {
"is_playable": true,
"uri": "spotify:track:6lFmtdoWhYyD5A8uPRUEZE"
}
},
{
"track": {
"is_playable": false,
"uri": "spotify:track:63rTTYYRQUMK2JZIJ6pwXz"
}
},
{
"track": {
"is_playable": true,
"uri": "spotify:track:2tcOzta2GXqSOu1uK8Cvfp"
}
}
],
"next":
"https://api.spotify.com/v1/playlists/5oPKSs2zPrrzQTIp2lliIP/tracks?offset=81&limit=3&fields=next,items(track(uri,is_playable))&market=NL"
}

However, after changing this in Sync.pm I got 
{
track => { is_playable => 'fix', uri =>
"spotify:track:6lFmtdoWhYyD5A8uPRUEZE" },
},
{
track => { is_playable => 'fix', uri =>
"spotify:track:63rTTYYRQUMK2JZIJ6pwXz" },
},

Notice that for both tracks is_playable is fix. So this was a no go.
When using restrictions you get

{
"items": [
{
"track": {
"uri": "spotify:track:6lFmtdoWhYyD5A8uPRUEZE"
}
},
{
"track": {
"restrictions": {
"reason": "market"
},
"uri": "spotify:track:63rTTYYRQUMK2JZIJ6pwXz"
}
},
{
"track": {
"uri": "spotify:track:2tcOzta2GXqSOu1uK8Cvfp"
}
},

This will do for filtering all non playable tracks.


------------------------------------------------------------------------
jepege's Profile: http://forums.slimdevices.com/member.php?userid=41763
View this thread: http://forums.slimdevices.com/showthread.php?t=112588

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to