mirror of
https://github.com/Radarr/Radarr
synced 2025-12-06 16:32:36 +01:00
New: Add HDR Type to XBMC metadata video stream details (#10906)
Co-authored-by: Bogdan <mynameisbogdan@users.noreply.github.com>
This commit is contained in:
parent
93581e4a2f
commit
a7dbdadd21
1 changed files with 17 additions and 0 deletions
|
|
@ -355,6 +355,23 @@ public override MetadataFileResult MovieMetadata(Movie movie, MovieFile movieFil
|
||||||
video.Add(new XElement("durationinseconds", Math.Round(movieFile.MediaInfo.RunTime.TotalSeconds)));
|
video.Add(new XElement("durationinseconds", Math.Round(movieFile.MediaInfo.RunTime.TotalSeconds)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (movieFile.MediaInfo.VideoHdrFormat is HdrFormat.DolbyVision or HdrFormat.DolbyVisionHdr10 or HdrFormat.DolbyVisionHdr10Plus or HdrFormat.DolbyVisionHlg or HdrFormat.DolbyVisionSdr)
|
||||||
|
{
|
||||||
|
video.Add(new XElement("hdrtype", "dolbyvision"));
|
||||||
|
}
|
||||||
|
else if (movieFile.MediaInfo.VideoHdrFormat is HdrFormat.Hdr10 or HdrFormat.Hdr10Plus or HdrFormat.Pq10)
|
||||||
|
{
|
||||||
|
video.Add(new XElement("hdrtype", "hdr10"));
|
||||||
|
}
|
||||||
|
else if (movieFile.MediaInfo.VideoHdrFormat == HdrFormat.Hlg10)
|
||||||
|
{
|
||||||
|
video.Add(new XElement("hdrtype", "hlg"));
|
||||||
|
}
|
||||||
|
else if (movieFile.MediaInfo.VideoHdrFormat == HdrFormat.None)
|
||||||
|
{
|
||||||
|
video.Add(new XElement("hdrtype", ""));
|
||||||
|
}
|
||||||
|
|
||||||
streamDetails.Add(video);
|
streamDetails.Add(video);
|
||||||
|
|
||||||
var audio = new XElement("audio");
|
var audio = new XElement("audio");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue