raitonoberu / sptlrx

Synchronized lyrics in your terminal
MIT License
354 stars 14 forks source link

[2024.04] Lyrics API stopped working #43

Closed raitonoberu closed 3 months ago

raitonoberu commented 3 months ago

Well, it wasn't hard to expect, Spotify got a change on the server (over 2 years btw!) that broke our lyrics scraping. I'm currently looking into the problem, and thankfully it seems easily fixable.

But I'm very busy these days, so expect changes in the range of a day to a couple weeks.

Thanks for staying here ❤️

raitonoberu commented 3 months ago

I spent an hour trying to figure out why the same query works in curl and doesn't in Go. Turns out Spotify servers deny requests with Go's default user agent, but not curl's :)

If you are using lyricsapi as your lyrics provider (player in config is not set to spotify & cookie is empty), this should already work. If you're using your own cookie, you'll have to wait until I complete #44 because putting it off is no longer acceptable.

RafGamer commented 3 months ago

@raitonoberu Maybe its a good idea if you could add the user-agent to this repo too, as a temporary fix, like you did here: https://github.com/raitonoberu/lyricsapi/commit/659da1d2b9064997562ddec8586f2aefd9254d42

raitonoberu commented 3 months ago

v1.2.2 should fix this completely. I've only tested it briefly, so please report any problems!