diff options
author | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-01-31 22:07:21 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-01-31 22:07:21 +0530 |
commit | f2d4bf9de9808f08f523ea2c741f385830960214 (patch) | |
tree | c7277f8c985946a3ce0c4c7deff9afbaef61c893 /anime/anime.structs.go | |
parent | 97a02c2d9b309ae7e6ed2c0b807ed02913ded98c (diff) |
Fixed Alternate Titles not loading
Diffstat (limited to 'anime/anime.structs.go')
-rw-r--r-- | anime/anime.structs.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/anime/anime.structs.go b/anime/anime.structs.go index 596f16e..3b468d1 100644 --- a/anime/anime.structs.go +++ b/anime/anime.structs.go @@ -73,12 +73,17 @@ type Recommendation struct { Num int `json:"num_recommendations"` } +type AltTitles struct { + Synonyms []string `json:"synonyms"` + En string `json:"en"` + Ja string `json:"ja"` +} + type Anime struct { Id int `json:"id"` Title string `json:"title"` MainPicture AnimePicture `json:"main_picture"` - // TODO: AltTitles should also have options for JP and EN Titles - AltTitles []string `json:"alternative_titles"` + AltTitles AltTitles `json:"alternative_titles"` StartDate string `json:"start_date"` EndDate string `json:"end_date"` Synopsis string `json:"synopsis"` @@ -99,6 +104,7 @@ type Anime struct { Broadcast Broadcast `json:"broadcast"` Source string `json:"source"` DurationSeconds int `json:"average_episode_duration"` + // Rating as in R, PG13, etc Rating string `json:"rating"` Pictures []AnimePicture `json:"pictures"` Background string `json:"background"` |