From eea1ae87e998bd9b7f149e23c0857405d2bce808 Mon Sep 17 00:00:00 2001 From: Lukas Schulz Date: Sat, 19 Dec 2020 21:52:10 +0100 Subject: [PATCH] yes. --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 64a3202..9a3e678 100644 --- a/main.py +++ b/main.py @@ -20,7 +20,8 @@ token = util.prompt_for_user_token(username, scope, client_id, client_secret, re if token: sp = spotipy.Spotify(auth=token) - track = sp.current_user_playing_track() + track = sp.currently_playing() + print(track['is_playing']) print(track['item']['name'] + ' - ' + track['item']['artists'][0]['name']) imageString = requests.get(track['item']['album']['images'][0]['url']) image = Image.open(BytesIO(imageString.content))