From 175967e06b7257759d85f14490fc8746f0978a71 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sat, 3 Oct 2026 12:36:08 +0200 Subject: [PATCH] fix(portals): a collection series never passes as the resolving movie The collection's selected movie id is reported only while the shown item is a movie, so a series with the same provider number cannot let a stale external launch start over it. Co-Authored-By: Claude Fable 5.1 --- .../src/lib/stalker-collection-playback.controller.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/portal/stalker/feature/src/lib/stalker-collection-playback.controller.ts b/libs/portal/stalker/feature/src/lib/stalker-collection-playback.controller.ts index cf8dd9790..544b28df1 100644 --- a/libs/portal/stalker/feature/src/lib/stalker-collection-playback.controller.ts +++ b/libs/portal/stalker/feature/src/lib/stalker-collection-playback.controller.ts @@ -128,7 +128,12 @@ export class StalkerCollectionPlaybackController { externalPlayback: this.config.externalPlayback, playbackPositions: this.config.playbackPositions, playlistId: () => this.playbackOwner()?.sourceId, - selectedVodId: () => Number(this.playbackOwner()?.contentId) || null, + // Movie and series ids collide: a series now on screen must not + // pass as the movie whose link is still resolving. + selectedVodId: () => + this.config.item()?.contentType === 'movie' + ? Number(this.playbackOwner()?.contentId) || null + : null, selectedVodPosition: this.selectedVodPosition, discardPendingPositionLoad: () => this.vodPlayback.discardPendingPositionLoad(),