From e669406ecd2b74fa0b994155f0d2bd591f9beefd Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Fri, 30 Dec 2022 14:12:34 +0100 Subject: [PATCH] fix extension --- internal/epub/image_processing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/epub/image_processing.go b/internal/epub/image_processing.go index 12948e7..4a3bdb3 100644 --- a/internal/epub/image_processing.go +++ b/internal/epub/image_processing.go @@ -49,9 +49,9 @@ func LoadImages(path string, options *ImageOptions) ([]*Image, error) { imageCount, imageInput, err = loadDir(path) } else { switch ext := strings.ToLower(filepath.Ext(path)); ext { - case ".cbz", "zip": + case ".cbz", ".zip": imageCount, imageInput, err = loadCbz(path) - case ".cbr", "rar": + case ".cbr", ".rar": imageCount, imageInput, err = loadCbr(path) case ".pdf": imageCount, imageInput, err = loadPdf(path)