mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 14:26:06 +01:00
Ignore metadata_pre_restore.db when doing a library check
This commit is contained in:
parent
80a4cb8a46
commit
c92c2c78c3
1 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,8 @@
|
|||
from polyglot.builtins import iteritems
|
||||
|
||||
EBOOK_EXTENSIONS = frozenset(BOOK_EXTENSIONS)
|
||||
NORMALS = frozenset(['metadata.opf', 'cover.jpg'])
|
||||
NORMALS = frozenset({'metadata.opf', 'cover.jpg'})
|
||||
IGNORE_AT_TOP_LEVEL = frozenset({'metadata.db', 'metadata_db_prefs_backup.json', 'metadata_pre_restore.db'})
|
||||
|
||||
'''
|
||||
Checks fields:
|
||||
|
|
@ -94,8 +95,7 @@ def scan_library(self, name_ignores, extension_ignores):
|
|||
|
||||
lib = self.src_library_path
|
||||
for auth_dir in os.listdir(lib):
|
||||
if self.ignore_name(auth_dir) or auth_dir in {'metadata.db',
|
||||
'metadata_db_prefs_backup.json'}:
|
||||
if self.ignore_name(auth_dir) or auth_dir in IGNORE_AT_TOP_LEVEL:
|
||||
continue
|
||||
auth_path = os.path.join(lib, auth_dir)
|
||||
# First check: author must be a directory
|
||||
|
|
|
|||
Loading…
Reference in a new issue