From 3d01300ff9e6ad4b79132a87d1baa74225b91aef Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 30 Jan 2023 22:22:19 -0600 Subject: [PATCH] Fixed: Calculate CFs after auxiliary parsing --- src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs index 2db68aeb1..4c4a8a2c9 100644 --- a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs +++ b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs @@ -88,9 +88,6 @@ namespace NzbDrone.Core.DecisionEngine _aggregationService.Augment(remoteAlbum); - remoteAlbum.CustomFormats = _formatCalculator.ParseCustomFormat(remoteAlbum, remoteAlbum.Release.Size); - remoteAlbum.CustomFormatScore = remoteAlbum?.Artist?.QualityProfile?.Value.CalculateCustomFormatScore(remoteAlbum.CustomFormats) ?? 0; - // try parsing again using the search criteria, in case it parsed but parsed incorrectly if ((remoteAlbum.Artist == null || remoteAlbum.Albums.Empty()) && searchCriteria != null) { @@ -129,6 +126,10 @@ namespace NzbDrone.Core.DecisionEngine else { _aggregationService.Augment(remoteAlbum); + + remoteAlbum.CustomFormats = _formatCalculator.ParseCustomFormat(remoteAlbum, remoteAlbum.Release.Size); + remoteAlbum.CustomFormatScore = remoteAlbum?.Artist?.QualityProfile?.Value.CalculateCustomFormatScore(remoteAlbum.CustomFormats) ?? 0; + remoteAlbum.DownloadAllowed = remoteAlbum.Albums.Any(); decision = GetDecisionForReport(remoteAlbum, searchCriteria); }