mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Merge branch 'py3_metadata' of https://github.com/norbusan/calibre
This commit is contained in:
commit
a91ed25d9b
@ -49,8 +49,9 @@ def main(opts, args, dbctx):
|
|||||||
if mi is None:
|
if mi is None:
|
||||||
raise SystemExit('Id #%d is not present in database.' % id)
|
raise SystemExit('Id #%d is not present in database.' % id)
|
||||||
if opts.as_opf:
|
if opts.as_opf:
|
||||||
|
stdout = getattr(sys.stdout, 'buffer', sys.stdout)
|
||||||
mi = OPFCreator(getcwd(), mi)
|
mi = OPFCreator(getcwd(), mi)
|
||||||
mi.render(sys.stdout)
|
mi.render(stdout)
|
||||||
else:
|
else:
|
||||||
prints(unicode_type(mi))
|
prints(unicode_type(mi))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user