typo that prevented an optimization to PDF metadata update when nothing changed

This commit is contained in:
Kovid Goyal 2014-07-23 17:28:55 +05:30
parent 5d9f1c89c7
commit 3017d3bdc8

View File

@ -34,8 +34,9 @@ def set_metadata(stream, mi):
xmp_packet = metadata_to_xmp_packet(mi)
try:
touched = fork_job('calibre.utils.podofo', 'set_metadata_', (tdir,
result = fork_job('calibre.utils.podofo', 'set_metadata_', (tdir,
mi.title, mi.authors, mi.book_producer, mi.tags, xmp_packet))
touched = result['result']
except WorkerError as e:
raise Exception('Failed to set PDF metadata: %s'%e.orig_tb)
if touched: