From f2d4bf9de9808f08f523ea2c741f385830960214 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 31 Jan 2022 22:07:21 +0530 Subject: Fixed Alternate Titles not loading --- anime/anime.structs.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'anime/anime.structs.go') 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"` -- cgit v1.2.3