diff options
author | Jordan <me@jordan.im> | 2021-01-22 20:25:34 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-01-22 20:25:34 -0700 |
commit | 2184788068ef8ad1f57bcaf4dd86c252ff5e5d9c (patch) | |
tree | 1334eec7ddce3059a8e85d25530d69bc48d817c7 | |
parent | 5e886308e60ac20ec7427d645370b7330ae88268 (diff) | |
download | roka-2184788068ef8ad1f57bcaf4dd86c252ff5e5d9c.tar.gz roka-2184788068ef8ad1f57bcaf4dd86c252ff5e5d9c.zip |
lower() extension before support check
-rw-r--r-- | lib/books.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |