Fix localization of audio title

Maybe passing ILocalizationManager into the ctor of MediaStream is a better solution for master?
This commit is contained in:
Bond_009
2024-07-15 14:27:12 +02:00
parent f2fa0b9025
commit 5bab02fa54
2 changed files with 10 additions and 4 deletions

View File

@@ -721,6 +721,8 @@ namespace MediaBrowser.MediaEncoding.Probing
if (streamInfo.CodecType == CodecType.Audio)
{
stream.Type = MediaStreamType.Audio;
stream.LocalizedDefault = _localization.GetLocalizedString("Default");
stream.LocalizedExternal = _localization.GetLocalizedString("External");
stream.Channels = streamInfo.Channels;