Merge pull request #91 from felipeumanzor/patch-1

Duplicated album detection improved
This commit is contained in:
Paul Lamere 2016-12-31 11:06:14 -05:00 committed by GitHub
commit 3a385c5181

View File

@ -34,7 +34,7 @@ def show_artist_albums(id):
print('Total albums:', len(albums))
unique = set() # skip duplicate albums
for album in albums:
name = album['name']
name = album['name'].lower()
if not name in unique:
print(name)
unique.add(name)