Fixed Formatting and .cbz creation
This commit is contained in:
parent
fd6ce2a51e
commit
c263fd9ccd
2 changed files with 3 additions and 4 deletions
5
main.go
5
main.go
|
@ -369,7 +369,7 @@ func DownloadAndProcessEpub(jnovel jnc.Api, serie jnc.SerieAugmented, volume jnc
|
|||
|
||||
zipPath := basePath + volume.Info.Title + " Chapter " + chap.chDisplay + ".cbz"
|
||||
|
||||
if _, err = os.Stat(zipPath); err != nil {
|
||||
if _, err = os.Stat(zipPath); err == nil {
|
||||
err := os.Remove(zipPath)
|
||||
if err != nil {
|
||||
return
|
||||
|
@ -830,14 +830,13 @@ func GenerateMangaChapterList(navigation FileWrapper) *list.List {
|
|||
num := r.FindStringSubmatch(label)[1]
|
||||
parse, _ := strconv.ParseInt(num, 10, 8)
|
||||
if int8(parse) == 0 {
|
||||
fmt.Printf("Unlikely Chapter Number Detected (0): %s/n", num)
|
||||
fmt.Printf("Unlikely Chapter Number Detected (0): '%s'\n", num)
|
||||
fmt.Println("Attempting Roman Numerals")
|
||||
lastMainChapter = int8(romanToInt(num))
|
||||
} else {
|
||||
lastMainChapter = int8(parse)
|
||||
}
|
||||
subChapter = int8(0)
|
||||
|
||||
} else {
|
||||
if lastMainChapter == -1 {
|
||||
subChapter -= 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue