This commit is contained in:
Lukas Schulz 2020-12-20 10:59:44 +01:00
parent 9884d2d3f1
commit fe4f4d9c45

View file

@ -55,7 +55,7 @@ def get_track():
artist_name = track['item']['artists'][0]['name']
for i in range(len(track['item']['artists'])-1):
artist_name +=', ' + track['item']['artists'][i+1]['name']
#print(track['item']['name'] + ' - ' + track['item']['artists'][0]['name'])
print('got info: ' + track['item']['name'] + ' - ' + track['item']['artists'][0]['name'])
#print('getting image')
image_url = track['item']['album']['images'][0]['url']
response = requests.get(image_url)