feat(backend): add genres support to AniList integration

Add the `genres` field to AniList GraphQL queries and type definitions:
- Add genres field to GetAniListItem query for fetching single anime details
- Add genres field to AniListSearch query for search results
- Add genres field to GetAniListUserWatchingList query for user's watch list
- Update MediaList type definition to include Genres []string field

This enhancement allows the application to retrieve and display anime genre
information from the AniList API, providing users with better categorization
and discovery capabilities.
This commit is contained in:
2026-03-19 20:37:06 -04:00
parent d70153064f
commit 54a8924384
2 changed files with 5 additions and 1 deletions

View File

@@ -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