aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-29 22:38:31 +0000
committerGravatar jesopo2019-01-29 22:38:31 +0000
commit8acc01dd48eba45ae3b9b9b77943aad95458c5d2 (patch)
tree63e410117e71b0b40c40efcf0cd38de2406af95c
parent`base64.b64encode(...)` takes a byte array, not a string (spotify.py) (diff)
signature
`post_data` is the kwarg for POST data, not `data` (spotify.py)
-rw-r--r--modules/spotify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/spotify.py b/modules/spotify.py
index 125c4c76..a97ede51 100644
--- a/modules/spotify.py
+++ b/modules/spotify.py
@@ -23,7 +23,7 @@ class Module(ModuleManager.BaseModule):
page = utils.http.request(URL_TOKEN, method="POST",
headers={"Authorization": "Basic %s" % bearer},
- data={"grant_type": "client_credentials"},
+ post_data={"grant_type": "client_credentials"},
json=True)
self._token_expire = time.time()+page.data["expires_in"]
return page.data["access_token"]