michaelherger / librespot

Open Source Spotify client library
MIT License
18 stars 7 forks source link

Spotify Access Token keeps being Disabled and Blocked #8

Open mschut opened 1 year ago

mschut commented 1 year ago

Am using the Spotty plugin for years now, very happy with it. However, in the recent months or so my Access Tokens (Spotify Development) keep being Disabled and Blocked. If I look at the "endpoints" (I assume the # of API calls) is above 4k per day.

Schermafbeelding 2023-04-28 om 09 39 29

I am using 6 Spotify users on 1 LMS server, but am doing this for years already. Dus to this behaviour I have to create a new App in the Spotify Development portal, but this is not fixing the real issue. Anyone any idea?

michaelherger commented 1 year ago

That's pretty high numbers. With four users I'm in the 150-200 calls range. And I don't see that much activity on /v1/playlists/. Are you using Connect mode extensively? Or do you have particularly large playlists? The API would only return 50 tracks per playlist. If you play lists with hundreds or thousands of tracks, this can result in high numbers of calls to those endpoints.

FWIW: the default client embedded in to the plugin sees about 60-70 requests per day and user. That would be closer to my number than yours on average. But that's a client ID with a "quota extension".

michaelherger commented 1 year ago

BTW: you'd likely reach more users posting to https://forums.slimdevices.com.

mschut commented 1 year ago

That's pretty high numbers. With four users I'm in the 150-200 calls range. And I don't see that much activity on /v1/playlists/. Are you using Connect mode extensively? Or do you have particularly large playlists? The API would only return 50 tracks per playlist. If you play lists with hundreds or thousands of tracks, this can result in high numbers of calls to those endpoints.

FWIW: the default client embedded in to the plugin sees about 60-70 requests per day and user. That would be closer to my number than yours on average. But that's a client ID with a "quota extension".

Thanks for the two leads. I have the Connect option enabled, but I would think this is not used so regularly and steady. The best lead would be the Playlists, I think my children do have very extensive playlists on Spotify. The best option to try is not to sync these playlists. To be sure, the top setting in the LMS Add-on of Spotty, where you could add account. There is an option "Import". Is this the "import playlists/library into LMS"?

michaelherger commented 1 year ago

That flag is to tell whether a collection should be part of the LMS library or not. If you want to skip playlists only, then you have to set that option in the Online Music Library Integration plugin settings (available from the same dropdown menu).

mschut commented 1 year ago

If you want to skip playlists only, then you have to set that option in the Online Music Library Integration plugin settings (available from the same dropdown menu).

I am looking at this, but I don't see an option specific for Playlists. I have disabled checking for updates, hopes that helps.

Schermafbeelding 2023-05-03 om 09 42 35

michaelherger commented 1 year ago

Oh, sorry. This is a new feature in LMS 8.4 - I guess you're running 8.3 or older? If you want to give it a try, you'll have to install that pre-release version. It's pretty stable at this point: https://downloads.slimdevices.com/nightly/?ver=8.4.