Use fuzzier matching for filters

Lowercase to avoid capitalization issues.
This commit is contained in:
Joshua Boniface 2023-04-07 02:01:20 -04:00
parent 402d88fcec
commit 95c6a6bac4
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ def download(_filters, _id, _desc, _limit, _file_structure):
if len(_filters) < 1:
add_to_pending = True
else:
add_to_pending = all(song[_filter[0]] == _filter[1] for _filter in _filters)
add_to_pending = all(song[_filter[0]].lower() == _filter[1].lower() for _filter in _filters)
if add_to_pending:
pending_songs.append(song)