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 <noreply@anthropic.com>
This commit is contained in:
4grayandClaude Fable 5.1 committed 2026-10-03 12:36:08 +02:00
1 parent fad77eda18
commit 175967e06b
1 file changed
+6 -1
@@ -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(),