This commit is contained in:
Lukas Schulz 2020-12-19 22:13:19 +01:00
parent 871e6d5f5d
commit bb070673b7

View file

@ -39,7 +39,7 @@ if token:
imageString = requests.get(track['item']['album']['images'][0]['url']) imageString = requests.get(track['item']['album']['images'][0]['url'])
image = Image.open(BytesIO(imageString.content)) image = Image.open(BytesIO(imageString.content))
image = image.resize((32,32)) image = image.resize((32,32))
image.save("thumbnail.jpg","JPEG") #image.save("thumbnail.jpg","JPEG")
else: else:
print("Can't get token for", username) print("Can't get token for", username)