yes.
This commit is contained in:
parent
c23fada078
commit
898d64633e
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -49,7 +49,7 @@ def get_track():
|
||||||
global artist_name
|
global artist_name
|
||||||
artist_name = track['item']['artists'][0]['name']
|
artist_name = track['item']['artists'][0]['name']
|
||||||
for i in range(len(track['item']['artists'])-1):
|
for i in range(len(track['item']['artists'])-1):
|
||||||
artist_name +=', ' + track['item']['artists'][i]['name']
|
artist_name +=', ' + track['item']['artists'][i+1]['name']
|
||||||
#print(track['item']['name'] + ' - ' + track['item']['artists'][0]['name'])
|
#print(track['item']['name'] + ' - ' + track['item']['artists'][0]['name'])
|
||||||
#print('getting image')
|
#print('getting image')
|
||||||
image_url = track['item']['album']['images'][0]['url']
|
image_url = track['item']['album']['images'][0]['url']
|
||||||
|
|
Loading…
Reference in a new issue