yes.
This commit is contained in:
parent
ccc026e582
commit
937b3d5bbf
1 changed files with 2 additions and 0 deletions
2
main.py
2
main.py
|
@ -48,6 +48,8 @@ def get_track():
|
||||||
song_name = track['item']['name']
|
song_name = track['item']['name']
|
||||||
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'])):
|
||||||
|
artist_name += track['item']['artists'][i]['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