mirror of https://github.com/Sonarr/Sonarr
parent
46a42e2901
commit
082c098420
|
@ -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))
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue