mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 00:02:37 +02:00
fix duplicate cover
This commit is contained in:
parent
418d51662c
commit
a3851475d2
@ -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"}, ""},
|
{"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))
|
items = append(items, iTag(part.Cover), hTag(part.Cover))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user