chrippa / spotify-remote

A simple CLI to control the Spotify desktop client
26 stars 4 forks source link

Doesn't seem to work anymore? #4

Open the-lay opened 6 years ago

the-lay commented 6 years ago

Searching for a way to control local spotify playback, I found this repo. Unfortunately, it doesn't seem to work anymore.

$ spotify-remote status
Error: Unable to decode JSON result: No JSON object could be decoded

Getting CSRF token returns HTTP 200, with proper token, but everything else from that point, including getting OAuth token seem to return HTTP 404.

the-lay commented 6 years ago

I've found the problem. Looks like all of the calls to Spotify Web Helper now require Origin to be set.
I've changed _call method signature to include that by default, and it works now.

def _call(self, path, headers=dict(Origin="https://open.spotify.com"), authed=False, raise_error=True, **params):

gturnr commented 6 years ago

It is not working anymore again