Bugfix: epub file was removed before processing of chapters was done
This commit is contained in:
parent
fb157d6b77
commit
8c97c93b34
1 changed files with 4 additions and 1 deletions
5
main.go
5
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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue