fix extension

This commit is contained in:
Celogeek 2022-12-30 14:12:34 +01:00
parent 34993e36ee
commit e669406ecd
Signed by: celogeek
GPG Key ID: E6B7BDCFC446233A

View File

@ -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)