From 8acc01dd48eba45ae3b9b9b77943aad95458c5d2 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 29 Jan 2019 22:38:31 +0000 Subject: [PATCH] `post_data` is the kwarg for POST data, not `data` (spotify.py) --- modules/spotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]