mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Edit Book: Fix incorrect EPUB 3 declarations being added to the OPF file when adding covers to an EPUB 2 book
This commit is contained in:
parent
7cbf2e2a2c
commit
66a6f90b1d
@ -302,6 +302,8 @@ def clean_opf(container):
|
||||
name = gtm.get(typ, None)
|
||||
if name and name in container.name_path_map:
|
||||
yield name
|
||||
ver = container.opf_version_parsed
|
||||
if ver.major > 2:
|
||||
removed_names = container.apply_unique_properties(None, 'cover-image', 'calibre:title-page')[0]
|
||||
for name in removed_names:
|
||||
yield name
|
||||
|
Loading…
x
Reference in New Issue
Block a user