From eaa23d67dc228a21eca3a3851a1a3f001f0f9bab Mon Sep 17 00:00:00 2001 From: Felipe M Date: Sun, 21 Feb 2021 22:09:37 +0100 Subject: [PATCH] CBR -> CBZ --- README.md | 4 ++-- go.mod | 2 +- main.go | 2 +- pkg/cli/cli.go | 7 +++---- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a04952d..02002f4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# MangaDex to CBR downloader +# MangaDex to Comic Book downloader -Generate CBR comics from MangaDex releases +Generate CBZ comics from MangaDex releases diff --git a/go.mod b/go.mod index 8685c59..d91640f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/fmartingr/mangadex2cbr +module github.com/fmartingr/mangadex2cbz go 1.15 diff --git a/main.go b/main.go index 079feba..c8f8816 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/fmartingr/mangadex2cbr/pkg/cli" + "github.com/fmartingr/mangadex2cbz/pkg/cli" ) func main() { diff --git a/pkg/cli/cli.go b/pkg/cli/cli.go index d595e32..7ea542d 100644 --- a/pkg/cli/cli.go +++ b/pkg/cli/cli.go @@ -17,7 +17,7 @@ import ( "time" "github.com/fmartingr/go-mangadex" - "github.com/fmartingr/mangadex2cbr/pkg/tasks" + "github.com/fmartingr/mangadex2cbz/pkg/tasks" "github.com/sirupsen/logrus" ) @@ -310,7 +310,6 @@ func Start() { } } - // TODO: Zip folders into CBR files logrus.Info("Compressing volumes") files, errReadVolumes := ioutil.ReadDir(mangaOutputPath) @@ -320,11 +319,11 @@ func Start() { for file := range files { if files[file].IsDir() { - destinationPath := filepath.Join(mangaOutputPath, files[file].Name()) + ".cbr" + destinationPath := filepath.Join(mangaOutputPath, files[file].Name()) + ".cbz" if !fileExists(destinationPath) { _, errZip := zipVolume(destinationPath) if errZip != nil { - logrus.Errorf("Error packing CBR file: %s", errZip) + logrus.Errorf("Error packing CB file: %s", errZip) } } }