From 5f7c7ee8096ea337bbf8d19fb40e6387de4880fa Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 26 Jul 2019 22:41:32 -0400 Subject: [PATCH] Fixed: Include HDR is naming examples Co-Authored-By: Mark McDowall --- src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoFormatter.cs | 4 ++-- src/NzbDrone.Core/Organizer/FileNameSampleService.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoFormatter.cs b/src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoFormatter.cs index 36c02083d..60de1def5 100644 --- a/src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoFormatter.cs +++ b/src/NzbDrone.Core/MediaFiles/MediaInfo/MediaInfoFormatter.cs @@ -477,8 +477,8 @@ namespace NzbDrone.Core.MediaFiles.MediaInfo var videoDynamicRange = ""; if (mediaInfo.VideoBitDepth >= 10 && - !string.IsNullOrEmpty(mediaInfo.VideoColourPrimaries) && - !string.IsNullOrEmpty(mediaInfo.VideoTransferCharacteristics)) + mediaInfo.VideoColourPrimaries.IsNotNullOrWhiteSpace() && + mediaInfo.VideoTransferCharacteristics.IsNotNullOrWhiteSpace()) { if (mediaInfo.VideoColourPrimaries.EqualsIgnoreCase(ValidHdrColourPrimaries) && ValidHdrTransferFunctions.Any(mediaInfo.VideoTransferCharacteristics.Contains)) diff --git a/src/NzbDrone.Core/Organizer/FileNameSampleService.cs b/src/NzbDrone.Core/Organizer/FileNameSampleService.cs index 28cb60982..5d03e7940 100644 --- a/src/NzbDrone.Core/Organizer/FileNameSampleService.cs +++ b/src/NzbDrone.Core/Organizer/FileNameSampleService.cs @@ -30,7 +30,7 @@ namespace NzbDrone.Core.Organizer VideoBitDepth = 10, VideoMultiViewCount = 2, VideoColourPrimaries = "BT.2020", - VideoTransferCharacteristics = "PQ", + VideoTransferCharacteristics = "HLG", AudioFormat = "DTS", AudioChannels = 6, AudioChannelPositions = "3/2/0.1", @@ -44,7 +44,7 @@ namespace NzbDrone.Core.Organizer VideoBitDepth = 10, VideoMultiViewCount = 2, VideoColourPrimaries = "BT.2020", - VideoTransferCharacteristics = "PQ", + VideoTransferCharacteristics = "HLG", AudioFormat = "DTS", AudioChannels = 6, AudioChannelPositions = "3/2/0.1",