fix duplicate cover

This commit is contained in:
Celogeek 2023-04-22 15:26:03 +02:00
parent 418d51662c
commit a3851475d2
Signed by: celogeek
SSH Key Fingerprint: SHA256:njNJLzoLQdbV9PC6ehcruRb0QnEgxABoCYZ+0+aUIYc

View File

@ -77,7 +77,7 @@ func (e *ePub) getManifest(title string, part *epubPart, currentPart, totalPart
{"item", TagAttrs{"id": "css", "href": "Text/style.css", "media-type": "text/css"}, ""},
}
if part.Cover != nil {
if e.HasCover || currentPart > 1 {
items = append(items, iTag(part.Cover), hTag(part.Cover))
}