New: Include HDR is naming examples

Closes #3199
This commit is contained in:
Mark McDowall 2019-07-11 17:51:48 -07:00
parent 46a42e2901
commit 082c098420
2 changed files with 8 additions and 4 deletions

View File

@ -480,8 +480,8 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo
var videoDynamicRange = ""; var videoDynamicRange = "";
if (mediaInfo.VideoBitDepth >= 10 && if (mediaInfo.VideoBitDepth >= 10 &&
!string.IsNullOrEmpty(mediaInfo.VideoColourPrimaries) && mediaInfo.VideoColourPrimaries.IsNotNullOrWhiteSpace() &&
!string.IsNullOrEmpty(mediaInfo.VideoTransferCharacteristics)) mediaInfo.VideoTransferCharacteristics.IsNotNullOrWhiteSpace())
{ {
if (mediaInfo.VideoColourPrimaries.EqualsIgnoreCase(ValidHdrColourPrimaries) && if (mediaInfo.VideoColourPrimaries.EqualsIgnoreCase(ValidHdrColourPrimaries) &&
ValidHdrTransferFunctions.Any(mediaInfo.VideoTransferCharacteristics.Contains)) ValidHdrTransferFunctions.Any(mediaInfo.VideoTransferCharacteristics.Contains))

View File

@ -101,7 +101,9 @@ namespace NzbDrone.Core.Organizer
var mediaInfo = new MediaInfoModel() var mediaInfo = new MediaInfoModel()
{ {
VideoCodec = "AVC", VideoCodec = "AVC",
VideoBitDepth = 8, VideoBitDepth = 10,
VideoColourPrimaries = "BT.2020",
VideoTransferCharacteristics = "HLG",
AudioFormat = "DTS", AudioFormat = "DTS",
AudioChannels = 6, AudioChannels = 6,
AudioChannelPositions = "3/2/0.1", AudioChannelPositions = "3/2/0.1",
@ -112,7 +114,9 @@ namespace NzbDrone.Core.Organizer
var mediaInfoAnime = new MediaInfoModel() var mediaInfoAnime = new MediaInfoModel()
{ {
VideoCodec = "AVC", VideoCodec = "AVC",
VideoBitDepth = 8, VideoBitDepth = 10,
VideoColourPrimaries = "BT.2020",
VideoTransferCharacteristics = "HLG",
AudioFormat = "DTS", AudioFormat = "DTS",
AudioChannels = 6, AudioChannels = 6,
AudioChannelPositions = "3/2/0.1", AudioChannelPositions = "3/2/0.1",