From 43ddc5a8899812660ce0949cb5fc68538c4bb427 Mon Sep 17 00:00:00 2001 From: Duncan Tourolle Date: Thu, 23 Jul 2026 21:14:45 +0200 Subject: [PATCH] domain: flip isVideoItem in player store to .kind (phase 2a completion) The catalog MediaItem check in stores/player.ts isVideoItem() was missed in the phase 2a sweep (excluded by a player-path filter). It reads the catalog MediaItem, so it flips like the rest: type Movie/Episode/TvChannel -> kind movie/episode/liveChannel. Verified: no catalog .type === "" comparisons remain in the frontend (only stream.type in VideoPlayer, deferred to phase 4). check clean. --- src/lib/stores/player.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/stores/player.ts b/src/lib/stores/player.ts index 277da543..d1b49efd 100644 --- a/src/lib/stores/player.ts +++ b/src/lib/stores/player.ts @@ -263,8 +263,8 @@ export const mergedVolume = derived( */ function isVideoItem(item: MediaItem | null): boolean { if (!item) return false; - const type = item.type; - if (type === "Movie" || type === "Episode" || type === "TvChannel") { + const kind = item.kind; + if (kind === "movie" || kind === "episode" || kind === "liveChannel") { return true; } // Backend PlayerMediaItem carries a lowercase mediaType discriminator that is