@@ -39,7 +39,7 @@ def request(query, params):
39 'https://accounts.spotify.com/api/token',
39 'https://accounts.spotify.com/api/token',
40 data={'grant_type': 'client_credentials'},
40 data={'grant_type': 'client_credentials'},
41 headers={'Authorization': 'Basic ' + str(base64.b64encode(
41 headers={'Authorization': 'Basic ' + str(base64.b64encode(
42− (api_client_id + ":" + api_client_secret).encode('utf-8')
42+ "{}:{}".format(api_client_id, api_client_secret).encode('utf-8')
43 ), 'utf-8')}
43 ), 'utf-8')}
45 j = loads(r.text)
45 j = loads(r.text)