mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 00:02:37 +02:00
fix extension
This commit is contained in:
parent
34993e36ee
commit
e669406ecd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user