diff --git a/main.go b/main.go index 5b27b30..923c4e1 100644 --- a/main.go +++ b/main.go @@ -434,8 +434,8 @@ func DownloadAndProcessEpub(jnovel jnc.Api, serie jnc.SerieAugmented, volume jnc epub.Close() newZip.Close() newZipFile.Close() - os.Remove(file) } + os.Remove(file) } case "novel": { @@ -822,6 +822,9 @@ func GenerateMangaChapterList(navigation FileWrapper) *list.List { r, _ := regexp.Compile(regex) num := r.FindStringSubmatch(label)[1] parse, _ := strconv.ParseInt(num, 10, 8) + if parse == 0 { + fmt.Printf("Unlikely Chapter Number Detected (0): %s/n", label) + } lastMainChapter = int8(parse) subChapter = int8(0) } else {