mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-01-08 15:42:48 +00:00
Merge pull request #91 from felipeumanzor/patch-1
Duplicated album detection improved
This commit is contained in:
commit
3a385c5181
@ -34,7 +34,7 @@ def show_artist_albums(id):
|
|||||||
print('Total albums:', len(albums))
|
print('Total albums:', len(albums))
|
||||||
unique = set() # skip duplicate albums
|
unique = set() # skip duplicate albums
|
||||||
for album in albums:
|
for album in albums:
|
||||||
name = album['name']
|
name = album['name'].lower()
|
||||||
if not name in unique:
|
if not name in unique:
|
||||||
print(name)
|
print(name)
|
||||||
unique.add(name)
|
unique.add(name)
|
||||||
|
Loading…
Reference in New Issue
Block a user