diff --git a/AniListFunctions.go b/AniListFunctions.go index 069f2ec..e7c9340 100644 --- a/AniListFunctions.go +++ b/AniListFunctions.go @@ -93,6 +93,7 @@ func (a *App) GetAniListItem(aniId int, login bool) AniListGetSingleAnime { timeUntilAiring episode } + genres tags{ id name @@ -222,6 +223,7 @@ func (a *App) AniListSearch(query string) any { timeUntilAiring episode } + genres tags{ id name @@ -307,6 +309,7 @@ func (a *App) GetAniListUserWatchingList(page int, perPage int, sort string) Ani timeUntilAiring episode } + genres tags{ id name diff --git a/AniListTypes.go b/AniListTypes.go index 862628b..2ede9db 100644 --- a/AniListTypes.go +++ b/AniListTypes.go @@ -74,7 +74,8 @@ type MediaList struct { TimeUntilAiring int `json:"timeUntilAiring"` Episode int `json:"episode"` } `json:"nextAiringEpisode"` - Tags []struct { + Genres []string `json:"genres"` + Tags []struct { Id int `json:"id"` Name string `json:"name"` Description string `json:"description"`