From 291c8983a455c878a91e2c2a49b2563bfe970243 Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Sat, 18 May 2024 16:23:41 +0200 Subject: [PATCH] handle double page as cover if split and not keeped --- internal/pkg/epub/epub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/epub/epub.go b/internal/pkg/epub/epub.go index a7503b5..4d73fc4 100644 --- a/internal/pkg/epub/epub.go +++ b/internal/pkg/epub/epub.go @@ -214,7 +214,7 @@ func (e EPUB) getParts() (parts []epubPart, imgStorage epubzip.StorageImageReade parts = make([]epubPart, 0) cover := images[0] - if e.Image.HasCover { + if e.Image.HasCover || (cover.DoublePage && !e.Image.KeepDoublePageIfSplit) { images = images[1:] }