michaelherger / Spotty-Plugin

A Spotify plugin for the Lyrion Music Server (fka. Logitech Media Server) and Squeezebox compatible players
124 stars 24 forks source link

Playlist parsing breaks because Spotify has started returning null values in the me/playlists answer #154

Open jesperll opened 13 hours ago

jesperll commented 13 hours ago

Lyrion 9.0.0 Spotty v4.11.140 (from spotty-test.xml)

Playlist parsing breaks because Spotify has started returning null values in the me/playlists answer

see: https://community.spotify.com/t5/Spotify-for-Developers/null-values-when-using-quot-Get-Current-User-s-Playlists-quot/td-p/6549968

My instance only gets the first 4 playlist and then errors out with

[24-12-03 22:45:47.6075] Plugins::Spotty::API::Sync::_call (339) API call: playlists//tracks?limit=100&market=from_token&offset=0
[24-12-03 22:45:47.7556] Plugins::Spotty::API::Sync::_call (385) Failed to parse JSON response from playlists//tracks?limit=100&market=from_token&offset=0: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "(end of string)") at /config/cache/InstalledPlugins/Plugins/Spotty/API/Sync.pm line 378.

Apparently this is because Spotify has started hiding their own curated playlists from the api

michaelherger commented 13 hours ago

You're not the first to report this. In many cases removing the account from LMS and re-authenticating helped. Or removing/adding the client ID.