mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Polish books: Fix a bug that could cause updating covers to error out in some books
This commit is contained in:
parent
be977db0d9
commit
4d59c3e4bc
1 changed files with 1 additions and 1 deletions
|
|
@ -192,7 +192,7 @@ def remove_cover_image_in_page(container, page, cover_images):
|
|||
href = img.get('src')
|
||||
name = container.href_to_name(href, page)
|
||||
if name in cover_images:
|
||||
img.getparent.remove(img)
|
||||
img.getparent().remove(img)
|
||||
break
|
||||
|
||||
def set_epub_cover(container, cover_path, report):
|
||||
|
|
|
|||
Loading…
Reference in a new issue