diff options
| author | 0xhtml <34682885+0xhtml@users.noreply.github.com> | 2019-07-31 21:01:24 +0200 |
|---|---|---|
| committer | 0xhtml <34682885+0xhtml@users.noreply.github.com> | 2019-07-31 21:01:24 +0200 |
| commit | 275b37cc7c87b562d08576be5268a4f8797b84ea (patch) | |
| tree | e64b6219724e9f25e00d01189aa8533c8c12fe5c | |
| parent | ae3eeedb14b1f693872787ac67975728c5773b84 (diff) | |
Fix error if the user hasn't set api credentials
| -rw-r--r-- | searx/engines/spotify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/spotify.py b/searx/engines/spotify.py index da32b334c..57b08a1e4 100644 --- a/searx/engines/spotify.py +++ b/searx/engines/spotify.py @@ -39,7 +39,7 @@ def request(query, params): 'https://accounts.spotify.com/api/token', data={'grant_type': 'client_credentials'}, headers={'Authorization': 'Basic ' + str(base64.b64encode( - (api_client_id + ":" + api_client_secret).encode('utf-8') + "{}:{}".format(api_client_id, api_client_secret).encode('utf-8') ), 'utf-8')} ) j = loads(r.text) |