added latest states
This commit is contained in:
9
main.go
9
main.go
@@ -67,12 +67,11 @@ func main() {
|
||||
fmt.Print(" Manga already completed!\n\n")
|
||||
}
|
||||
|
||||
if _, err := os.Stat(strings.Join([]string{path, "EPUB", manga.Name + ".epub"}, "/")); err != nil || forceEpub || newChapter {
|
||||
epubPath := strings.Join([]string{path, "EPUB"}, "/")
|
||||
os.MkdirAll(epubPath, 0755)
|
||||
if forceEpub || newChapter {
|
||||
os.MkdirAll("/tmp/epub", 0755)
|
||||
fmt.Println("Generating EPUB")
|
||||
createepub.CreateEpub(mangaPath, epubPath, manga.Name, manga.ID)
|
||||
fmt.Printf("EPUB created and saved under: %s\n\n", epubPath)
|
||||
createepub.CreateEpub(mangaPath, manga.Name, manga.ID)
|
||||
fmt.Printf("EPUB created and saved under: %s\n\n", "/tmp/epub")
|
||||
} else {
|
||||
fmt.Print("No update on manga, skipping epub creation!\n\n")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user