Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions spotify_requests/spotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
# your spotify dev account as well *
CLIENT_SIDE_URL = "http://127.0.0.1"
PORT = 8081
REDIRECT_URI = "{}:{}/callback/".format(CLIENT_SIDE_URL, PORT)
REDIRECT_URI = "{}:{}/callback".format(CLIENT_SIDE_URL, PORT)
SCOPE = "playlist-modify-public playlist-modify-private user-read-recently-played user-top-read"
STATE = ""
SHOW_DIALOG_bool = True
Expand All @@ -65,14 +65,14 @@

#python 3
if sys.version_info[0] >= 3:
URL_ARGS = "&".join(["{}={}".format(key, urllibparse.quote(val))
URL_ARGS = "&".join(["{}={}".format(key, urllibparse.quote(val, safe=''))
for key, val in list(auth_query_parameters.items())])
else:
URL_ARGS = "&".join(["{}={}".format(key, urllibparse.quote(val))
for key, val in auth_query_parameters.iteritems()])


AUTH_URL = "{}/?{}".format(SPOTIFY_AUTH_URL, URL_ARGS)
AUTH_URL = "{}?{}".format(SPOTIFY_AUTH_URL, URL_ARGS)

'''
This function must be used with the callback method present in the
Expand Down