From 622a652c538e811b7e5d9dc946ddbae9424a5457 Mon Sep 17 00:00:00 2001 From: Lukas Schulz Date: Sat, 19 Dec 2020 22:46:29 +0100 Subject: [PATCH] yes. --- main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7054f3b..660dbf6 100644 --- a/main.py +++ b/main.py @@ -38,13 +38,16 @@ def get_track(): track = sp.currently_playing() print(track['is_playing']) print(track['item']['name'] + ' - ' + track['item']['artists'][0]['name']) + print('getting image') imageString = requests.get(track['item']['album']['images'][0]['url']) image = Image.open(BytesIO(imageString.content)) + print('resizing image') image = image.resize((32,32)) - return image + #return image #image.save("thumbnail.jpg","JPEG") - screen.SetImage(thumbnail.convert('RGB')) print('set image') + screen.SetImage(thumbnail.convert('RGB')) + print('image set') #if token: # sp = spotipy.Spotify(auth=token)