aboutsummaryrefslogtreecommitdiff
path: root/lib/books.py
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2021-01-22 20:25:34 -0700
committerJordan <me@jordan.im>2021-01-22 20:25:34 -0700
commit2184788068ef8ad1f57bcaf4dd86c252ff5e5d9c (patch)
tree1334eec7ddce3059a8e85d25530d69bc48d817c7 /lib/books.py
parent5e886308e60ac20ec7427d645370b7330ae88268 (diff)
downloadroka-2184788068ef8ad1f57bcaf4dd86c252ff5e5d9c.tar.gz
roka-2184788068ef8ad1f57bcaf4dd86c252ff5e5d9c.zip
lower() extension before support check
Diffstat (limited to 'lib/books.py')
-rw-r--r--lib/books.py2
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