diff --git a/main.go b/main.go index 923c4e1..ebd3549 100644 --- a/main.go +++ b/main.go @@ -369,6 +369,12 @@ func DownloadAndProcessEpub(jnovel jnc.Api, serie jnc.SerieAugmented, volume jnc zipPath := basePath + "Chapter " + chap.chDisplay + ".cbz" + if _, err = os.Stat(zipPath); err != nil { + err := os.Remove(zipPath) + if err != nil { + return + } + } newZipFile, err := os.Create(zipPath) if err != nil { panic(err)