From 3a4fa82f14fd4ca0002c1183f6d05b0c131e151d Mon Sep 17 00:00:00 2001 From: mkelvers Date: Tue, 19 May 2026 02:46:41 +0200 Subject: [PATCH] feat: add year field to quick search response --- internal/anime/handler/handler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/anime/handler/handler.go b/internal/anime/handler/handler.go index 167c828..dc63c5c 100644 --- a/internal/anime/handler/handler.go +++ b/internal/anime/handler/handler.go @@ -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], }