Check language for null or empty instead of only null in MediaBrowser.Providers/MediaInfo/AudioResolver.cs

Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
Jonas Resch 2021-11-27 16:57:53 +01:00 committed by Jonas Resch
parent d016d483ae
commit bbf1399826

View File

@ -123,7 +123,7 @@ namespace MediaBrowser.Providers.MediaInfo
mediaStream.IsDefault = false;
mediaStream.Title = null;
if (mediaStream.Language == null)
if (string.IsNullOrEmpty(mediaStream.Language))
{
// Try to translate to three character code
// Be flexible and check against both the full and three character versions