From bbf1399826f92241a653adbb808a4cc7ea6a5542 Mon Sep 17 00:00:00 2001 From: Jonas Resch <32968142+jonas-resch@users.noreply.github.com> Date: Sat, 27 Nov 2021 16:57:53 +0100 Subject: [PATCH] Check language for null or empty instead of only null in MediaBrowser.Providers/MediaInfo/AudioResolver.cs Co-authored-by: Claus Vium --- MediaBrowser.Providers/MediaInfo/AudioResolver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Providers/MediaInfo/AudioResolver.cs b/MediaBrowser.Providers/MediaInfo/AudioResolver.cs index bd778684ed..54d8525778 100644 --- a/MediaBrowser.Providers/MediaInfo/AudioResolver.cs +++ b/MediaBrowser.Providers/MediaInfo/AudioResolver.cs @@ -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