Renamed files folder to anime
This commit is contained in:
parent
754f99e880
commit
07ab02fbd1
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user