make extension lower case

This commit is contained in:
j 2016-02-13 15:58:06 +05:30
commit 209ebeaab8
2 changed files with 3 additions and 3 deletions

View file

@ -88,7 +88,7 @@ def run_scan():
if f.startswith('.'):
continue
f = os.path.join(root, f)
ext = f.split('.')[-1]
ext = f.split('.')[-1].lower()
if ext == 'kepub':
ext = 'epub'
if ext in extensions:
@ -166,7 +166,7 @@ def run_import(options=None):
if f.startswith('.'):
continue
f = os.path.join(root, f)
ext = f.split('.')[-1]
ext = f.split('.')[-1].lower()
if ext in extensions:
books.append(f)
count += 1