URL_SPOTIFY was renamed to URL_SEARCH (spotify.py)

This commit is contained in:
jesopo 2019-01-29 22:39:58 +00:00
parent 74e8ad0351
commit a177c5050e

View file

@ -35,7 +35,7 @@ class Module(ModuleManager.BaseModule):
:usage: <term> :usage: <term>
""" """
token = self._get_token() token = self._get_token()
page = utils.http.request(URL_SPOTIFY, 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)