Improved episode refresh

This commit is contained in:
2017-09-24 05:01:15 +02:00
parent eb4b4c7b54
commit bd38aca4c0
2 changed files with 13 additions and 3 deletions

View File

@ -20,6 +20,9 @@ func main() {
if sync(anime) {
count++
}
// Lower the request interval
time.Sleep(2 * time.Second)
}
// Log
@ -53,7 +56,6 @@ func sync(anime *arn.Anime) bool {
// Did we get the ID?
if anime.GetMapping("shoboi/anime") != "" {
println(color.GreenString("✔"))
time.Sleep(2 * time.Second)
return true
}