diff --git a/src/calibre/db/adding.py b/src/calibre/db/adding.py index d3931248a1..9a5f01d8af 100644 --- a/src/calibre/db/adding.py +++ b/src/calibre/db/adding.py @@ -17,9 +17,7 @@ def splitext(path): return key, ext[1:].lower() def formats_ok(formats): - if formats and (len(formats) > 1 or tuple(formats.iterkeys()) != ('opf',)): - return True - return False + return len(formats) > 0 def path_ok(path): return not os.path.isdir(path) and os.access(path, os.R_OK)