Fix option to not save cover separately when using Save to disk not working. Fixes #1704925 [--dont-save-cover option not respected by calibredb export](https://bugs.launchpad.net/calibre/+bug/1704925)

This commit is contained in:
Kovid Goyal 2017-07-18 11:36:54 +05:30
parent b1129d8037
commit 761b32b99f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -340,7 +340,7 @@ def do_save_book_to_disk(db, book_id, mi, plugboards,
raise raise
cdata = None cdata = None
if opts.save_cover or formats: if opts.save_cover:
cdata = db.cover(book_id) cdata = db.cover(book_id)
if cdata: if cdata:
cpath = base_path + '.jpg' cpath = base_path + '.jpg'