Skip to content

Commit

Permalink
fix logic for ignoring multiple keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat-nair committed Jan 20, 2024
1 parent 204d9a4 commit ae55c81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spotdl/utils/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,9 @@ def get_simple_songs(
songs = [
song
for song in songs
for keyword in albums_to_ignore
if keyword not in song.album_name.lower()
if all(
keyword not in song.album_name.lower() for keyword in albums_to_ignore
)
]
new_length = len(songs)
logger.info("Skipped %s songs (Ignored albums)", (original_length - new_length))
Expand Down

0 comments on commit ae55c81

Please sign in to comment.