From f27f1490b55d3ff4ea875171025a6a27007b5dde Mon Sep 17 00:00:00 2001 From: Ilya Gubins Date: Sun, 22 Oct 2017 23:02:02 +0300 Subject: [PATCH] Origin header is now used by default, fixes #4 --- spotify_remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotify_remote.py b/spotify_remote.py index 0164ad2..374a6f6 100755 --- a/spotify_remote.py +++ b/spotify_remote.py @@ -73,7 +73,7 @@ def __init__(self, port_start=4370, port_end=4400): def _url(self, path): return URL_FORMAT.format(self.port, path) - def _call(self, path, headers=None, authed=False, raise_error=True, + def _call(self, path, headers=dict(Origin="https://open.spotify.com"), authed=False, raise_error=True, **params): if authed: params["oauth"] = self.oauth_token