From 07ab02fbd15955d093b8d7a58fc352c087a0d187 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Tue, 24 Apr 2018 03:41:27 +0200 Subject: [PATCH] Renamed files folder to anime --- jobs/mal-download/mal-download.go | 2 +- jobs/mal-parse/mal-parse.go | 2 +- jobs/mal-parse/shell.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jobs/mal-download/mal-download.go b/jobs/mal-download/mal-download.go index eff0274a..b4d38720 100644 --- a/jobs/mal-download/mal-download.go +++ b/jobs/mal-download/mal-download.go @@ -80,7 +80,7 @@ func main() { func queue(anime *arn.Anime, malCrawler *crawler.Crawler) { malID := anime.GetMapping("myanimelist/anime") url := "https://myanimelist.net/anime/" + malID - filePath := fmt.Sprintf("files/anime-%s.html", malID) + filePath := fmt.Sprintf("anime/anime-%s.html", malID) fileInfo, err := os.Stat(filePath) if err == nil && time.Since(fileInfo.ModTime()) <= maxAge { diff --git a/jobs/mal-parse/mal-parse.go b/jobs/mal-parse/mal-parse.go index 5c6da1a3..869caadf 100644 --- a/jobs/mal-parse/mal-parse.go +++ b/jobs/mal-parse/mal-parse.go @@ -27,7 +27,7 @@ func main() { return } - filepath.Walk(path.Join(arn.Root, "jobs/mal-download/files"), func(name string, info os.FileInfo, err error) error { + filepath.Walk(path.Join(arn.Root, "jobs/mal-download/anime"), func(name string, info os.FileInfo, err error) error { if err != nil { fmt.Println(err) return err diff --git a/jobs/mal-parse/shell.go b/jobs/mal-parse/shell.go index 3cd11cea..1862f8dd 100644 --- a/jobs/mal-parse/shell.go +++ b/jobs/mal-parse/shell.go @@ -29,7 +29,7 @@ func InvokeShellArgs() bool { panic("No MAL ID") } - readFile(path.Join(arn.Root, "jobs/mal-download/files", "anime-"+anime.GetMapping("myanimelist/anime")+".html")) + readFile(path.Join(arn.Root, "jobs/mal-download/anime", "anime-"+anime.GetMapping("myanimelist/anime")+".html")) return true }