Added character sync

This commit is contained in:
2017-11-13 20:42:53 +01:00
parent c899cea62f
commit 880cd5bd53
2 changed files with 75 additions and 1 deletions

View File

@ -43,7 +43,7 @@ func sync(anime *arn.Anime, malID string) {
var err error
for try := 1; try <= maxRetries; try++ {
time.Sleep(1 * time.Second)
time.Sleep(time.Second)
anime, err = jikan.GetAnime(malID)
if err == nil {
@ -52,6 +52,9 @@ func sync(anime *arn.Anime, malID string) {
}
fmt.Printf("Error fetching %s on try %d: %v", malID, try, err)
// Wait an additional second
time.Sleep(time.Second)
}
}
}