Duplicated album detection improved

not case sensitive.
This commit is contained in:
felipeumanzor 2016-04-16 20:20:35 -03:00
parent b412de8d75
commit e8e82c3c49
1 changed files with 1 additions and 1 deletions

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)