aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@protonmail.ch>2022-03-11 20:19:07 +0530
committerVidhu Kant Sharma <vidhukant@protonmail.ch>2022-03-11 20:19:07 +0530
commitcf32370298596c8d83c31f792fa66672366f2768 (patch)
treea204cd1b4caab585ba7464130af0e3140edda6a8
parent6eb07bc323e04785b5031c8332643b243d63f073 (diff)
Bug Fix: GetSuggestedAnime max limit was set to 500 but it is actually 100
-rw-r--r--anime/anime.go3
-rw-r--r--manga/manga.structs.go22
2 files changed, 13 insertions, 12 deletions
diff --git a/anime/anime.go b/anime/anime.go
index 4247381..7e968ea 100644
--- a/anime/anime.go
+++ b/anime/anime.go
@@ -214,7 +214,8 @@ func (c Client) GetSuggestedAnime(limit, offset int, fields []string) (Suggested
var suggestedAnime SuggestedAnime
// error handling for limit
- limitErr := e.LimitErrHandler(limit, maxAnimeLimit)
+ // limit for this is 100 unlike others in the current package
+ limitErr := e.LimitErrHandler(limit, 100)
if limitErr != nil {
return suggestedAnime, limitErr
}
diff --git a/manga/manga.structs.go b/manga/manga.structs.go
index e863d00..6c5d570 100644
--- a/manga/manga.structs.go
+++ b/manga/manga.structs.go
@@ -45,17 +45,17 @@ type ListStatus struct {
}
type Manga struct {
- Id int `json:"id"`
- Title string `json:"title"`
- MainPicture util.Picture `json:"main_picture"`
- AltTitles util.AltTitles `json:"alternative_titles"`
- StartDate string `json:"start_date"`
- EndDate string `json:"end_date"`
- Synopsis string `json:"synopsis"`
- MeanScore float32 `json:"mean"`
- Rank int `json:"rank"`
- Popularity int `json:"popularity"`
- NumListUsers int `json:"num_list_users"`
+ Id int `json:"id"`
+ Title string `json:"title"`
+ MainPicture util.Picture `json:"main_picture"`
+ AltTitles util.AltTitles `json:"alternative_titles"`
+ StartDate string `json:"start_date"`
+ EndDate string `json:"end_date"`
+ Synopsis string `json:"synopsis"`
+ MeanScore float32 `json:"mean"`
+ Rank int `json:"rank"`
+ Popularity int `json:"popularity"`
+ NumListUsers int `json:"num_list_users"`
NsfwStatus string `json:"nsfw"`
Genres []util.Genre `json:"genres"`
CreatedAt string `json:"created_at"`