From 53a405a7438de3fa724ccfa0db3ad5c1fc736c91 Mon Sep 17 00:00:00 2001 From: Erno Date: Mon, 20 Oct 2025 19:02:05 +0000 Subject: [PATCH] feat(search): include originalType (FILM/TV_SERIES) for KP results; ensure KP poster/backdrop proxied --- pkg/models/unified.go | 1 + pkg/services/unified_mapper.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/models/unified.go b/pkg/models/unified.go index f8ce2a5..5a8b065 100644 --- a/pkg/models/unified.go +++ b/pkg/models/unified.go @@ -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"` diff --git a/pkg/services/unified_mapper.go b/pkg/services/unified_mapper.go index ce07589..50f89dd 100644 --- a/pkg/services/unified_mapper.go +++ b/pkg/services/unified_mapper.go @@ -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,