mirror of
https://github.com/gabehf/sonarr-anime-importer.git
synced 2026-03-13 09:20:27 -07:00
sleep for 500ms instead of 1s
This commit is contained in:
parent
b3ffa247ee
commit
cca2f9d549
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -88,7 +88,7 @@ func getAnimeSearch(malToTvdb map[int]int, r *http.Request) (string, error) {
|
|||
break
|
||||
}
|
||||
if hasNextPage {
|
||||
time.Sleep(1 * time.Second) // sleep between requests for new page to try and avoid rate limits
|
||||
time.Sleep(500 * time.Millisecond) // sleep between requests for new page to try and avoid rate limits
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue