yes.
This commit is contained in:
parent
905c750cc3
commit
d79e41d5f4
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -62,12 +62,12 @@ def get_track():
|
|||
sp = spotipy.Spotify(auth=token)
|
||||
track = sp.currently_playing()
|
||||
if track is None:
|
||||
return
|
||||
return Image.new('RGB',(32,32),color='black')
|
||||
global is_playing
|
||||
is_playing = track['is_playing']
|
||||
global song_name
|
||||
if track is None:
|
||||
return
|
||||
return Image.new('RGB',(32,32),color='black')
|
||||
song_name = track['item']['name']
|
||||
global artist_name
|
||||
artist_name = track['item']['artists'][0]['name']
|
||||
|
|
Loading…
Reference in a new issue