This commit is contained in:
Lukas Schulz 2020-12-20 20:09:41 +01:00
parent 5f34d572cd
commit 66ed4df59f

View file

@ -66,6 +66,8 @@ def get_track():
global is_playing global is_playing
is_playing = track['is_playing'] is_playing = track['is_playing']
global song_name global song_name
if track is None:
return
song_name = track['item']['name'] song_name = track['item']['name']
global artist_name global artist_name
artist_name = track['item']['artists'][0]['name'] artist_name = track['item']['artists'][0]['name']