소스 검색

Merge pull request #11772 from Bond-009/audioProfile

Prefer profile over codec for display title
Bond-009 1 년 전
부모
커밋
c975d50cdc
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      MediaBrowser.Model/Entities/MediaStream.cs

+ 4 - 4
MediaBrowser.Model/Entities/MediaStream.cs

@@ -267,13 +267,13 @@ namespace MediaBrowser.Model.Entities
                             attributes.Add(StringHelper.FirstToUpper(fullLanguage ?? Language));
                             attributes.Add(StringHelper.FirstToUpper(fullLanguage ?? Language));
                         }
                         }
 
 
-                        if (!string.IsNullOrEmpty(Codec) && !string.Equals(Codec, "dca", StringComparison.OrdinalIgnoreCase) && !string.Equals(Codec, "dts", StringComparison.OrdinalIgnoreCase))
+                        if (!string.IsNullOrEmpty(Profile) && !string.Equals(Profile, "lc", StringComparison.OrdinalIgnoreCase))
                         {
                         {
-                            attributes.Add(AudioCodec.GetFriendlyName(Codec));
+                            attributes.Add(Profile);
                         }
                         }
-                        else if (!string.IsNullOrEmpty(Profile) && !string.Equals(Profile, "lc", StringComparison.OrdinalIgnoreCase))
+                        else if (!string.IsNullOrEmpty(Codec))
                         {
                         {
-                            attributes.Add(Profile);
+                            attributes.Add(AudioCodec.GetFriendlyName(Codec));
                         }
                         }
 
 
                         if (!string.IsNullOrEmpty(ChannelLayout))
                         if (!string.IsNullOrEmpty(ChannelLayout))