From 2184788068ef8ad1f57bcaf4dd86c252ff5e5d9c Mon Sep 17 00:00:00 2001 From: Jordan Date: Fri, 22 Jan 2021 20:25:34 -0700 Subject: lower() extension before support check --- lib/books.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/books.py') diff --git a/lib/books.py b/lib/books.py index 83d096d..1c4b4a5 100644 --- a/lib/books.py +++ b/lib/books.py @@ -134,7 +134,7 @@ class Books: for f in sorted(os.listdir(path)): # must be a file and have a supported extension file_path = os.path.join(path, f) - if not os.path.isfile(file_path) or not f.split('.')[-1] in ext: + if not os.path.isfile(file_path) or not f.split('.')[-1].lower() in ext: continue # tracks at minimum must have a duration tag (required by podcast -- cgit v1.2.3-54-g00ecf