feat: add year field to quick search response

This commit is contained in:
2026-05-19 02:46:41 +02:00
parent 60c8f6039b
commit 3a4fa82f14

View File

@@ -374,6 +374,7 @@ func (h *AnimeHandler) HandleQuickSearch(c *gin.Context) {
ID int `json:"id"`
Title string `json:"title"`
Type string `json:"type"`
Year int `json:"year"`
Image string `json:"image"`
InWatchlist bool `json:"in_watchlist"`
}
@@ -384,6 +385,7 @@ func (h *AnimeHandler) HandleQuickSearch(c *gin.Context) {
ID: anime.MalID,
Title: anime.DisplayTitle(),
Type: anime.Type,
Year: anime.Year,
Image: anime.ImageURL(),
InWatchlist: watchlistMap[anime.MalID],
}