This commit is contained in:
Kovid Goyal 2023-10-09 21:02:46 +05:30
parent 97825e0467
commit c4c2575096
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -35,7 +35,7 @@ def get_metadata(stream, extract_cover=True):
cover_href = val
break
else:
for val in opf.guide_cover_path(opf.root):
for val in opf.guide_cover_path(opf.root): # this is needed because the cover is not in the manifest
if val.rpartition('.')[2].lower() in {'jpeg', 'jpg', 'png'}:
cover_href = val
break