mirror of
https://github.com/gabehf/sonarr-anime-importer.git
synced 2026-03-17 19:26:26 -07: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
|
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
|
hasNextPage := true
|
||||||
page := 0
|
page := 0
|
||||||
resp := []ResponseItem{}
|
resp := []ResponseItem{}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue