mirror of
https://github.com/gabehf/sonarr-anime-importer.git
synced 2026-03-07 21:48:17 -08:00
remove limit from Jikan request
This commit is contained in:
parent
cca2f9d549
commit
2f7910e117
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
|
@ -53,6 +53,10 @@ func getAnimeSearch(malToTvdb map[int]int, r *http.Request) (string, error) {
|
|||
limit = 9999 // limit not specified or invalid
|
||||
}
|
||||
|
||||
// for some reason Jikan responds with 400 Bad Request for any limit >25
|
||||
// so instead, we just limit when mapping the data and remove the limit from the Jikan request
|
||||
q.Del("limit")
|
||||
|
||||
hasNextPage := true
|
||||
page := 0
|
||||
resp := []ResponseItem{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue