handle double page as cover if split and not keeped

This commit is contained in:
Celogeek 2024-05-18 16:23:41 +02:00
parent 2755aae487
commit 291c8983a4
Signed by: celogeek
SSH Key Fingerprint: SHA256:njNJLzoLQdbV9PC6ehcruRb0QnEgxABoCYZ+0+aUIYc

View File

@ -214,7 +214,7 @@ func (e EPUB) getParts() (parts []epubPart, imgStorage epubzip.StorageImageReade
parts = make([]epubPart, 0) parts = make([]epubPart, 0)
cover := images[0] cover := images[0]
if e.Image.HasCover { if e.Image.HasCover || (cover.DoublePage && !e.Image.KeepDoublePageIfSplit) {
images = images[1:] images = images[1:]
} }