mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
07203f86bd
commit
b73be0f990
@ -574,6 +574,9 @@ def command_set_metadata(args, dbpath):
|
|||||||
|
|
||||||
if len(args) > 2:
|
if len(args) > 2:
|
||||||
opf = args[2]
|
opf = args[2]
|
||||||
|
if not os.path.exists(opf):
|
||||||
|
prints(_('The OPF file %s does not exist')%opf, file=sys.stderr)
|
||||||
|
return 1
|
||||||
do_set_metadata(db, book_id, opf)
|
do_set_metadata(db, book_id, opf)
|
||||||
|
|
||||||
if opts.field:
|
if opts.field:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user