diff options
| author | gnattu <gnattuoc@me.com> | 2024-07-29 07:44:13 +0800 |
|---|---|---|
| committer | gnattu <gnattuoc@me.com> | 2024-07-29 07:49:05 +0800 |
| commit | 0132ad05abf4a158a232d9960bc2c51c4e7842e9 (patch) | |
| tree | ca6ef256d2f06256534e41a93cc15fbe8ba4fea5 | |
| parent | 095d4d4d15825e948c4894361487c7dced0ca03f (diff) | |
Display DOVI title in DisplayTitle when available
Signed-off-by: gnattu <gnattuoc@me.com>
| -rw-r--r-- | MediaBrowser.Model/Entities/MediaStream.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Entities/MediaStream.cs b/MediaBrowser.Model/Entities/MediaStream.cs index dcb3febbd..20e011745 100644 --- a/MediaBrowser.Model/Entities/MediaStream.cs +++ b/MediaBrowser.Model/Entities/MediaStream.cs @@ -196,7 +196,7 @@ namespace MediaBrowser.Model.Entities || dvProfile == 8 || dvProfile == 9)) { - var title = "DV Profile " + dvProfile; + var title = "Dolby Vision Profile " + dvProfile; if (dvBlCompatId > 0) { @@ -208,6 +208,7 @@ namespace MediaBrowser.Model.Entities 1 => title + " (HDR10)", 2 => title + " (SDR)", 4 => title + " (HLG)", + 6 => title + " (HDR10)", // Technically means Blu-ray, but practically always HDR10 _ => title }; } @@ -330,7 +331,11 @@ namespace MediaBrowser.Model.Entities attributes.Add(Codec.ToUpperInvariant()); } - if (VideoRange != VideoRange.Unknown) + if (VideoDoViTitle is not null) + { + attributes.Add(VideoDoViTitle); + } + else if (VideoRange != VideoRange.Unknown) { attributes.Add(VideoRange.ToString()); } |
