post_data is the kwarg for POST data, not data (spotify.py)

This commit is contained in:
jesopo 2019-01-29 22:38:31 +00:00
parent bb047ec1b7
commit 8acc01dd48

View file

@ -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"]