mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
typo that prevented an optimization to PDF metadata update when nothing changed
This commit is contained in:
parent
5d9f1c89c7
commit
3017d3bdc8
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user