From c23fada078f6f1f679f2c5b6df86acdc28f95037 Mon Sep 17 00:00:00 2001 From: Lukas Schulz Date: Sun, 20 Dec 2020 01:23:21 +0100 Subject: [PATCH] yes. --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 92f0897..67a66cd 100644 --- a/main.py +++ b/main.py @@ -47,8 +47,8 @@ def get_track(): global song_name song_name = track['item']['name'] global artist_name - #artist_name = track['item']['artists'][0]['name'] - for i in range(len(track['item']['artists'])): + artist_name = track['item']['artists'][0]['name'] + for i in range(len(track['item']['artists'])-1): artist_name +=', ' + track['item']['artists'][i]['name'] #print(track['item']['name'] + ' - ' + track['item']['artists'][0]['name']) #print('getting image')