mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-05 07:27:47 +00:00
Duplicated album detection improved
not case sensitive.
This commit is contained in:
parent
b412de8d75
commit
e8e82c3c49
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user