yes.
This commit is contained in:
parent
5f34d572cd
commit
66ed4df59f
1 changed files with 2 additions and 0 deletions
2
main.py
2
main.py
|
@ -66,6 +66,8 @@ def get_track():
|
|||
global is_playing
|
||||
is_playing = track['is_playing']
|
||||
global song_name
|
||||
if track is None:
|
||||
return
|
||||
song_name = track['item']['name']
|
||||
global artist_name
|
||||
artist_name = track['item']['artists'][0]['name']
|
||||
|
|
Loading…
Reference in a new issue