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 }