@ -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