diff options
| author | Bond-009 <bond.009@outlook.com> | 2024-05-24 14:15:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-24 14:15:43 +0200 |
| commit | c975d50cdcbace70136145f3ba99846d81c3dee5 (patch) | |
| tree | f80430502702acfba6a8639285d7665dd6de0d2f | |
| parent | 575584b68f10c379fd9a19b0a1c5cf678eb3b82c (diff) | |
| parent | 69ae006f3733cc622cede05bf8de3c0fe226a155 (diff) | |
Merge pull request #11772 from Bond-009/audioProfile
Prefer profile over codec for display title
| -rw-r--r-- | MediaBrowser.Model/Entities/MediaStream.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs index 0d2d7c696..3e01c6efc 100644 --- a/MediaBrowser.Model/Entities/MediaStream.cs +++ b/MediaBrowser.Model/Entities/MediaStream.cs @@ -267,13 +267,13 @@ namespace MediaBrowser.Model.Entities 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)) |
