mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 17:10:45 +00:00
Duplicated album detection improved
not case sensitive.
This commit is contained in:
1 parent
b412de8d75
commit
e8e82c3c49
1 file changed
+1
-1
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user