This commit is contained in:
Lukas Schulz 2020-12-20 01:18:34 +01:00
parent 5aecfad38c
commit ccc026e582

View file

@ -53,7 +53,7 @@ def get_track():
image_url = track['item']['album']['images'][0]['url'] image_url = track['item']['album']['images'][0]['url']
response = requests.get(image_url) response = requests.get(image_url)
image = Image.open(BytesIO(response.content)) image = Image.open(BytesIO(response.content))
print(image_url) #print(image_url)
image = image.resize((32,32)) image = image.resize((32,32))
return image return image