mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2038961 [E-book viewer: two cover pages for an AZW3 book](https://bugs.launchpad.net/calibre/+bug/2038961)
This commit is contained in:
parent
ac0ae71ae8
commit
b9385fb982
@ -1489,6 +1489,8 @@ def epub_to_azw3(epub, outpath=None):
|
||||
guide.append(guide.makeelement(OPF('reference'), type='cover', href=href))
|
||||
changed = True
|
||||
break
|
||||
elif 'calibre:title-page' in p:
|
||||
item.getparent().remove(item)
|
||||
if changed:
|
||||
container.dirty(container.opf_name)
|
||||
container.commit_item(container.opf_name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user