mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04: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
@ -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…
x
Reference in New Issue
Block a user