Commit dc58ac9 1 parent 533cd6e commit dc58ac9 Copy full SHA for dc58ac9
File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,15 @@ def check_for_tokens():
15
15
log .debug ('Checking for tokens' )
16
16
CLIENT_ID = getenv ('SPOTIPY_CLIENT_ID' )
17
17
CLIENT_SECRET = getenv ('SPOTIPY_CLIENT_SECRET' )
18
- REDIRECT_URL = getenv ('SPOTIPY_REDIRECT_URI' )
19
- log .debug ("Tokens fetched: {} {} {}" .format (CLIENT_ID , CLIENT_SECRET ,
20
- REDIRECT_URL ))
18
+ log .debug ("Tokens fetched: {} {}" .format (CLIENT_ID , CLIENT_SECRET ))
21
19
22
- if CLIENT_ID is None or CLIENT_SECRET is None or REDIRECT_URL is None :
20
+ if CLIENT_ID is None or CLIENT_SECRET is None :
23
21
print ('''
24
22
You need to set your Spotify API credentials. You can do this by
25
23
setting environment variables like so:
26
24
27
25
export SPOTIPY_CLIENT_ID='your-spotify-client-id'
28
26
export SPOTIPY_CLIENT_SECRET='your-spotify-client-secret'
29
- export SPOTIPY_REDIRECT_URI='your-app-redirect-url'
30
-
31
27
Get your credentials at
32
28
https://developer.spotify.com/my-applications
33
29
''' )
You can’t perform that action at this time.
0 commit comments