From 02610b66bbe221aae14d56ff32d7807fdd25d6c5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 21 Dec 2013 23:14:34 +0530 Subject: [PATCH] Edit book: Fix a bug preventing marking an image as cover in a book that previously had no cover --- src/calibre/ebooks/oeb/polish/cover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/cover.py b/src/calibre/ebooks/oeb/polish/cover.py index 77f471338b..4fb5def47c 100644 --- a/src/calibre/ebooks/oeb/polish/cover.py +++ b/src/calibre/ebooks/oeb/polish/cover.py @@ -150,7 +150,7 @@ def mark_as_cover_epub(container, name): if not container.opf_xpath('//opf:guide/opf:reference[@type="cover"]'): for guide in container.opf_xpath('//opf:guide'): container.insert_into_xml(guide, guide.makeelement( - OPF('reference', type='cover', href=container.name_to_href(name, container.opf_name)))) + OPF('reference'), type='cover', href=container.name_to_href(name, container.opf_name))) container.dirty(container.opf_name)