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:
Thomas Texier 2015-05-26 18:46:28 -04:00
parent 0d2e173099
commit 4982cf1167
1 changed files with 1 additions and 1 deletions

View File

@ -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'])