Bugfix: epub file was removed before processing of chapters was done

This commit is contained in:
Neshura 2025-02-18 22:36:48 +01:00
parent fb157d6b77
commit 8c97c93b34
Signed by: Neshura
GPG key ID: 4E2D47B1374C297D

View file

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