From 0edca3b2faf545abc065de55a94b87a10ac3f405 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 24 Feb 2022 00:39:10 +0530 Subject: renamed MyListStatus to ListStatus --- anime/README.md | 2 +- anime/anime.structs.go | 2 +- manga/manga.go | 2 +- manga/manga.structs.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/anime/README.md b/anime/README.md index 1040dda..e20f080 100644 --- a/anime/README.md +++ b/anime/README.md @@ -75,7 +75,7 @@ if err != nil { fmt.Println(err) } -fmt.Println(anime.Title, anime.MeanScore, anime.MyListStatus.Status) +fmt.Println(anime.Title, anime.MeanScore, anime.ListStatus.Status) ``` - ### Get anime ranking diff --git a/anime/anime.structs.go b/anime/anime.structs.go index f5fd273..039af12 100644 --- a/anime/anime.structs.go +++ b/anime/anime.structs.go @@ -77,7 +77,7 @@ type Anime struct { MediaType string `json:"media_type"` Status string `json:"status"` Genres []u.Genre `json:"genres"` - MyListStatus ListStatus `json:"my_list_status"` + ListStatus ListStatus `json:"my_list_status"` NumEpisodes int `json:"num_episodes"` StartSeason Season `json:"start_season"` Broadcast Broadcast `json:"broadcast"` diff --git a/manga/manga.go b/manga/manga.go index 35b3a3d..0fd7853 100644 --- a/manga/manga.go +++ b/manga/manga.go @@ -28,7 +28,7 @@ import ( const BASE_URL string = "https://api.myanimelist.net/v2/manga" // MAL Might change this -const maxMangaLimit int = 100 +const maxMangaLimit int = 500 // in MAL documentation this is named Get Manga List func (c Client) SearchManga(searchString string, limit, offset int, fields []string) (MangaSearch, error) { diff --git a/manga/manga.structs.go b/manga/manga.structs.go index b9748c4..7c33c2b 100644 --- a/manga/manga.structs.go +++ b/manga/manga.structs.go @@ -53,7 +53,7 @@ type Manga struct { UpdatedAt string `json:"updated_at"` MediaType string `json:"media_type"` Status string `json:"status"` - MyListStattus ListStatus `json:"my_list_status"` + ListStatus ListStatus `json:"my_list_status"` NumVolumes int `json:"num_volumes"` NumChapters int `json:"num_chapters"` Authors []Author `json:"authors"` -- cgit v1.2.3