From 1bd12be1dd33e33dc49e8985445c0fccc6f6abc0 Mon Sep 17 00:00:00 2001 From: yiannisha Date: Thu, 21 Oct 2021 23:38:58 +0300 Subject: [PATCH] Modified get_artist_album --- zspotify.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zspotify.py b/zspotify.py index ed0b7aad..1a64bccb 100755 --- a/zspotify.py +++ b/zspotify.py @@ -518,9 +518,8 @@ def get_artist_albums(access_token, artist_id): headers = {'Authorization': f'Bearer {access_token}'} resp = requests.get( f'https://api.spotify.com/v1/artists/{artist_id}/albums', headers=headers).json() - # Return a list of tuples that contain each album's name and id - return [(resp['items'][i]['name'], resp['items'][i]['id']) - for i in range(len(resp['items']))] + # Return a list each album's id + return [resp['items'][i]['id'] for i in range(len(resp['items']))] # Extra functions directly related to our saved tracks def get_saved_tracks(access_token):