mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #12353 from gnattu/display-dv-title-when-available
Display DOVI title in DisplayTitle when available
This commit is contained in:
commit
fd5d8bebb9
@ -196,7 +196,7 @@ namespace MediaBrowser.Model.Entities
|
|||||||
|| dvProfile == 8
|
|| dvProfile == 8
|
||||||
|| dvProfile == 9))
|
|| dvProfile == 9))
|
||||||
{
|
{
|
||||||
var title = "DV Profile " + dvProfile;
|
var title = "Dolby Vision Profile " + dvProfile;
|
||||||
|
|
||||||
if (dvBlCompatId > 0)
|
if (dvBlCompatId > 0)
|
||||||
{
|
{
|
||||||
@ -208,6 +208,7 @@ namespace MediaBrowser.Model.Entities
|
|||||||
1 => title + " (HDR10)",
|
1 => title + " (HDR10)",
|
||||||
2 => title + " (SDR)",
|
2 => title + " (SDR)",
|
||||||
4 => title + " (HLG)",
|
4 => title + " (HLG)",
|
||||||
|
6 => title + " (HDR10)", // Technically means Blu-ray, but practically always HDR10
|
||||||
_ => title
|
_ => title
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -330,7 +331,11 @@ namespace MediaBrowser.Model.Entities
|
|||||||
attributes.Add(Codec.ToUpperInvariant());
|
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());
|
attributes.Add(VideoRange.ToString());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user