Typo, {,}
instead of {:}
made headers
a set (spotify.py)
This commit is contained in:
parent
a177c5050e
commit
d178938463
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
token = self._get_token()
|
token = self._get_token()
|
||||||
page = utils.http.request(URL_SEARCH,
|
page = utils.http.request(URL_SEARCH,
|
||||||
get_params={"type": "track", "limit": 1, "q": event["args"]},
|
get_params={"type": "track", "limit": 1, "q": event["args"]},
|
||||||
headers={"Authorization", "Bearer %s" % token},
|
headers={"Authorization": "Bearer %s" % token},
|
||||||
json=True)
|
json=True)
|
||||||
if page:
|
if page:
|
||||||
if len(page.data["tracks"]["items"]):
|
if len(page.data["tracks"]["items"]):
|
||||||
|
|
Loading…
Reference in a new issue