From 7561f07fc7371c86dd80260359b39b2ddd0b916d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 27 Mar 2016 20:43:10 +0530 Subject: [PATCH] calibredb add: Fix the --cover option not working if the book being added has its own cover. Fixes #1562507 [calibredb add -c ./cover.jpg not working](https://bugs.launchpad.net/calibre/+bug/1562507) --- src/calibre/library/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/library/cli.py b/src/calibre/library/cli.py index 15183256a5..759c77591b 100644 --- a/src/calibre/library/cli.py +++ b/src/calibre/library/cli.py @@ -299,6 +299,7 @@ def do_add(db, paths, one_book_per_directory, recurse, add_duplicates, otitle, mi.series_index = oseries_index if ocover: mi.cover = ocover + mi.cover_data = (None, None) formats.append(format) metadata.append(mi)