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()
|
epub.Close()
|
||||||
newZip.Close()
|
newZip.Close()
|
||||||
newZipFile.Close()
|
newZipFile.Close()
|
||||||
os.Remove(file)
|
|
||||||
}
|
}
|
||||||
|
os.Remove(file)
|
||||||
}
|
}
|
||||||
case "novel":
|
case "novel":
|
||||||
{
|
{
|
||||||
|
@ -822,6 +822,9 @@ func GenerateMangaChapterList(navigation FileWrapper) *list.List {
|
||||||
r, _ := regexp.Compile(regex)
|
r, _ := regexp.Compile(regex)
|
||||||
num := r.FindStringSubmatch(label)[1]
|
num := r.FindStringSubmatch(label)[1]
|
||||||
parse, _ := strconv.ParseInt(num, 10, 8)
|
parse, _ := strconv.ParseInt(num, 10, 8)
|
||||||
|
if parse == 0 {
|
||||||
|
fmt.Printf("Unlikely Chapter Number Detected (0): %s/n", label)
|
||||||
|
}
|
||||||
lastMainChapter = int8(parse)
|
lastMainChapter = int8(parse)
|
||||||
subChapter = int8(0)
|
subChapter = int8(0)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue