From 95c6a6bac4ffdbfe84d26387127f6047086e12b9 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Fri, 7 Apr 2023 02:01:20 -0400 Subject: [PATCH] Use fuzzier matching for filters Lowercase to avoid capitalization issues. --- c3dbdl/c3dbdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c3dbdl/c3dbdl.py b/c3dbdl/c3dbdl.py index 0c21929..37662b9 100755 --- a/c3dbdl/c3dbdl.py +++ b/c3dbdl/c3dbdl.py @@ -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)