mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Better is_ebook_file
This commit is contained in:
parent
bb87507909
commit
e6142a543e
@ -130,8 +130,9 @@ class CheckLibrary(object):
|
|||||||
if not ext:
|
if not ext:
|
||||||
return False
|
return False
|
||||||
ext = ext[1:].lower()
|
ext = ext[1:].lower()
|
||||||
if ext not in EBOOK_EXTENSIONS or \
|
if ext in EBOOK_EXTENSIONS:
|
||||||
self.bad_ext_pat.search(ext) is not None:
|
return True
|
||||||
|
if self.bad_ext_pat.search(ext) is not None:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user