mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-07-30 14:00:18 +00:00
Fixed artist_albums.py
Was luckily working correctly, but was accessing the artist "global" variable, instead of the passed parameter.
This commit is contained in:
@@ -12,7 +12,7 @@ def get_artist(name):
|
||||
else:
|
||||
return None
|
||||
|
||||
def show_artist_albums(id):
|
||||
def show_artist_albums(artist):
|
||||
albums = []
|
||||
results = sp.artist_albums(artist['id'], album_type='album')
|
||||
albums.extend(results['items'])
|
||||
|
Reference in New Issue
Block a user