Browse Source

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>
Jonas Resch 3 năm trước cách đây
mục cha
commit
bbf1399826
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      MediaBrowser.Providers/MediaInfo/AudioResolver.cs

+ 1 - 1
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