Better is_ebook_file

This commit is contained in:
Kovid Goyal 2010-10-01 11:28:58 -06:00
parent bb87507909
commit e6142a543e

View File

@ -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