feat(search): include originalType (FILM/TV_SERIES) for KP results; ensure KP poster/backdrop proxied

This commit is contained in:
Erno
2025-10-20 19:02:05 +00:00
parent 71ea922528
commit 53a405a743
2 changed files with 2 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ type UnifiedSearchItem struct {
SourceID string `json:"sourceId"`
Title string `json:"title"`
Type string `json:"type"`
OriginalType string `json:"originalType,omitempty"`
ReleaseDate string `json:"releaseDate"`
PosterURL string `json:"posterUrl"`
Rating float64 `json:"rating"`

View File

@@ -236,6 +236,7 @@ func MapKPSearchToUnifiedItems(kps *KPSearchResponse) []models.UnifiedSearchItem
SourceID: "kp_" + strconv.Itoa(kpId),
Title: title,
Type: mapKPTypeToUnifiedShort(f.Type),
OriginalType: strings.ToUpper(strings.TrimSpace(f.Type)),
ReleaseDate: yearToDate(f.Year),
PosterURL: poster,
Rating: rating,