Make 'Always' subtitle mode prioritise full tracks

This commit is contained in:
jgriff6 2022-10-11 18:36:19 +01:00
parent fbeec04da7
commit a83d4b03dc
1 changed files with 2 additions and 2 deletions

View File

@ -71,8 +71,8 @@ namespace Emby.Server.Implementations.Library
} }
else if (mode == SubtitlePlaybackMode.Always) else if (mode == SubtitlePlaybackMode.Always)
{ {
// Always load subtitles of the user's preferred subtitle language if possible, otherwise default behaviour. // Always load (full/non-forced) subtitles of the user's preferred subtitle language if possible, otherwise default behaviour.
stream = sortedStreams.FirstOrDefault(x => preferredLanguages.Contains(x.Language, StringComparison.OrdinalIgnoreCase)) ?? stream = sortedStreams.FirstOrDefault(x => !x.IsForced && preferredLanguages.Contains(x.Language, StringComparison.OrdinalIgnoreCase)) ??
sortedStreams.FirstOrDefault(x => x.IsExternal || x.IsForced || x.IsDefault); sortedStreams.FirstOrDefault(x => x.IsExternal || x.IsForced || x.IsDefault);
} }
else if (mode == SubtitlePlaybackMode.OnlyForced) else if (mode == SubtitlePlaybackMode.OnlyForced)