dvx / lofi

🎵🔉 A mini Spotify player with WebGL visualizations.
http://lofi.rocks
MIT License
1.18k stars 67 forks source link

API Calls possible fix #201

Open TheMasterDingo opened 2 years ago

TheMasterDingo commented 2 years ago

Custom spotify id https://www.youtube.com/watch?v=Z0S430tm5ZI

Tuna and AudioBand uses this method and is very responsive. Can lofi implement something similar?

stamoun commented 2 years ago

We are already using this https://github.com/dvx/lofi/blob/master/src/main/auth.ts#L13

The issue with throttling is that we are doing too many requests to Spotify's REST api (once per second or so). I think we can circumvent that with the following: https://github.com/dvx/lofi/issues/190

TheMasterDingo commented 2 years ago

With the one i posted each user (premium) can create their own client id and secret code so the api calls can be sent separately, at least this will offload the current system for the freemium users