Fix TypeScript const assertion on TMDB trailer type mapping.

This commit is contained in:
Jos Vooges | STH 2026-09-21 04:02:01 +02:00
parent 4a09ea74c1
commit 8bfa8935b0

View file

@ -437,7 +437,7 @@ export class MetadataService {
.slice(0, 3)
.map((v) => ({
source: v.key!,
type: (v.type === "Teaser" ? "Teaser" : "Trailer") as const,
type: (v.type === "Teaser" ? "Teaser" : "Trailer") as "Trailer" | "Teaser",
}));
const imdbFromExt = data.external_ids?.imdb_id?.trim();