Typo, {,} instead of {:} made headers a set (spotify.py)

This commit is contained in:
jesopo 2019-01-29 22:40:44 +00:00
parent a177c5050e
commit d178938463

View file

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