Update web_server.py
This commit is contained in:
parent
c281dd0cda
commit
4f8fff5daa
1 changed files with 1 additions and 1 deletions
|
|
@ -25490,7 +25490,7 @@ def get_spotify_artist_discography(artist_name):
|
|||
|
||||
for album in all_albums:
|
||||
# Skip albums where this artist isn't the primary (first-listed) artist
|
||||
if album.artist_ids and album.artist_ids[0] != spotify_artist_id:
|
||||
if getattr(album, 'artist_ids', None) and album.artist_ids[0] != spotify_artist_id:
|
||||
continue
|
||||
|
||||
# Use the Album object properties
|
||||
|
|
|
|||
Loading…
Reference in a new issue