mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 02:43:46 +02:00
ebook-meta: fix --to-opf option
This commit is contained in:
parent
01c8dd2fc6
commit
7533100384
1 changed files with 2 additions and 2 deletions
|
|
@ -180,9 +180,9 @@ def main(args=sys.argv):
|
|||
if opts.to_opf is not None:
|
||||
from calibre.ebooks.metadata.opf2 import OPFCreator
|
||||
opf = OPFCreator(os.getcwdu(), mi)
|
||||
with open(opts.opf, 'wb') as f:
|
||||
with open(opts.to_opf, 'wb') as f:
|
||||
opf.render(f)
|
||||
prints(_('OPF created in'), opts.opf)
|
||||
prints(_('OPF created in'), opts.to_opf)
|
||||
|
||||
if opts.get_cover is not None:
|
||||
if mi.cover_data and mi.cover_data[1]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue