mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fixed typo(?) in set_metadata() for touched files.
This commit is contained in:
parent
8042ad136f
commit
8f30c17486
@ -36,7 +36,7 @@ def set_metadata(stream, mi):
|
||||
except WorkerError as e:
|
||||
raise Exception('Failed to set PDF metadata: %s'%e.orig_tb)
|
||||
if touched:
|
||||
with open(os.path.join(tdir, u'output.pdf'), 'rb') as f:
|
||||
with open(os.path.join(tdir, u'input.pdf'), 'rb') as f:
|
||||
f.seek(0, 2)
|
||||
if f.tell() > 100:
|
||||
f.seek(0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user