yes.
This commit is contained in:
parent
871e6d5f5d
commit
bb070673b7
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue