This commit is contained in:
Lukas Schulz 2020-12-20 13:15:03 +01:00
parent f0a03867de
commit 05f4d71dbb

View file

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