mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
2727f351d3
commit
aa0c0ada63
@ -337,7 +337,7 @@ def main():
|
||||
dev.touch(args[0])
|
||||
elif command == 'test_file':
|
||||
parser = OptionParser(usage=("usage: %prog test_file path\n"
|
||||
'Open device, copy file psecified by path to device and '
|
||||
'Open device, copy file specified by path to device and '
|
||||
'then eject device.'))
|
||||
options, args = parser.parse_args(args)
|
||||
if len(args) != 1:
|
||||
|
@ -290,7 +290,7 @@ class XMLCache(object):
|
||||
|
||||
lpath_map = self.build_lpath_map(root)
|
||||
for book in bl:
|
||||
record = lpath_map[book.lpath]
|
||||
record = lpath_map.get(book.lpath, None)
|
||||
if record is not None:
|
||||
title = record.get('title', None)
|
||||
if title is not None and title != book.title:
|
||||
|
Loading…
x
Reference in New Issue
Block a user