mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
EPUB Input: Correctly update the Cover entry in the ToC even when the entry has a fragment reference. Fixes #999973 (Private bug)
This commit is contained in:
parent
726bb958e7
commit
5ec4e24b00
@ -207,7 +207,7 @@ class EPUBInput(InputFormatPlugin):
|
|||||||
if rc:
|
if rc:
|
||||||
cover_toc_item = None
|
cover_toc_item = None
|
||||||
for item in oeb.toc.iterdescendants():
|
for item in oeb.toc.iterdescendants():
|
||||||
if item.href == rc:
|
if item.href and item.href.partition('#')[0] == rc:
|
||||||
cover_toc_item = item
|
cover_toc_item = item
|
||||||
break
|
break
|
||||||
spine = {x.href for x in oeb.spine}
|
spine = {x.href for x in oeb.spine}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user