epsil / spotgen

Spotify Playlist Generator
https://epsil.github.io/spotgen/
Other
130 stars 26 forks source link

Not Working (from web interface) #5

Closed edo9k closed 7 years ago

edo9k commented 7 years ago

I was looking for a way to create mixed Spotify playlists and found this project, which can even be used from the terminal (the most convenient way).

But it ain't working, why? PLZ HALP

epsil commented 7 years ago

Hi edo9k, thanks for your interest in the project.

Short answer: Use the terminal version for now, the web version is currently broken.

Long answer: Spotify recently changed their authorization requirements. One now has to authorize with their server before doing any requests, and the requests have to be supplied with a token that one obtains from the authorization.

There are several authorization flows. The terminal version uses the client credentials flow, which is transparent as far as the user is concerned. However, that flow cannot be used by the web version, because Spotify's authorization server rejects cross-site requests.

Thus, the web version has to be rewritten to use one of the other authorization flows, which require the user to log in with their Spotify account before the playlist is generated. Potentially, this could provide a better interface for creating playlists than the current "copy and paste" scheme. However, it requires a substantial refactoring of the web version code, which is currently just a simple wrapper for invoking the generator.

edo9k commented 7 years ago

Thanks a lot man! Great tool!