diff --git a/server/src/stream/jellyfin/JellyfinStreamDetails.ts b/server/src/stream/jellyfin/JellyfinStreamDetails.ts index 6ef345795..d3807442d 100644 --- a/server/src/stream/jellyfin/JellyfinStreamDetails.ts +++ b/server/src/stream/jellyfin/JellyfinStreamDetails.ts @@ -260,7 +260,7 @@ export class JellyfinStreamDetails { firstMediaSource?.MediaStreams, (stream) => stream.Type === 'Audio', ), - (stream) => [stream.Index ?? 0, !!stream.IsDefault], + (stream) => [stream.Index ?? 0, !stream.IsDefault], ), (audioStream) => { return { diff --git a/server/src/stream/plex/PlexStreamDetails.ts b/server/src/stream/plex/PlexStreamDetails.ts index 9656784d5..7dd10ad7a 100644 --- a/server/src/stream/plex/PlexStreamDetails.ts +++ b/server/src/stream/plex/PlexStreamDetails.ts @@ -309,7 +309,10 @@ export class PlexStreamDetails { filter(mediaStreams, (stream): stream is PlexMediaAudioStream => { return stream.streamType === 2; }), - (stream) => [stream.index, stream.selected ?? stream.default ?? false], + (stream) => [ + stream.index, + !(stream.selected ?? stream.default ?? false), + ], ), (audioStream) => { return {