Renamed files folder to anime

This commit is contained in:
Eduard Urbach 2018-04-24 03:41:27 +02:00
parent 754f99e880
commit 07ab02fbd1
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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

View File

@ -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
}