Use fuzzier matching for filters
Lowercase to avoid capitalization issues.
This commit is contained in:
parent
402d88fcec
commit
95c6a6bac4
|
@ -533,7 +533,7 @@ def download(_filters, _id, _desc, _limit, _file_structure):
|
||||||
if len(_filters) < 1:
|
if len(_filters) < 1:
|
||||||
add_to_pending = True
|
add_to_pending = True
|
||||||
else:
|
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:
|
if add_to_pending:
|
||||||
pending_songs.append(song)
|
pending_songs.append(song)
|
||||||
|
|
Loading…
Reference in New Issue