mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
add audio track check
This commit is contained in:
parent
c183edc238
commit
bb85253e3b
@ -89,8 +89,11 @@ namespace MediaBrowser.Providers.MediaInfo
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var internalAudioStreams = internalMediaStreams.Where(i => i.Type == MediaStreamType.Audio)
|
// There's already an audio stream for this language
|
||||||
.ToList();
|
if (internalMediaStreams.Any(i => i.Type == MediaStreamType.Audio && string.Equals(i.Language, language, StringComparison.OrdinalIgnoreCase)))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// There's an internal subtitle stream for this language
|
// There's an internal subtitle stream for this language
|
||||||
if (!forceExternal &&
|
if (!forceExternal &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user