From 761b32b99f18952e8ad58201995f73f09f3c0bd2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 18 Jul 2017 11:36:54 +0530 Subject: [PATCH] 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) --- src/calibre/library/save_to_disk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/save_to_disk.py b/src/calibre/library/save_to_disk.py index fef2ff2f62..555ecac27c 100644 --- a/src/calibre/library/save_to_disk.py +++ b/src/calibre/library/save_to_disk.py @@ -340,7 +340,7 @@ def do_save_book_to_disk(db, book_id, mi, plugboards, raise cdata = None - if opts.save_cover or formats: + if opts.save_cover: cdata = db.cover(book_id) if cdata: cpath = base_path + '.jpg'