master
Lukas Schulz 2020-12-20 13:15:03 +01:00
parent f0a03867de
commit 05f4d71dbb
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ def get_track():
print('getting current song info')
sp = spotipy.Spotify(auth=token)
track = sp.currently_playing()
if track is None:
return
global is_playing
is_playing = track['is_playing']
global song_name