mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
b1129d8037
commit
761b32b99f
@ -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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user