mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Fixed: Calculate CFs after auxiliary parsing
This commit is contained in:
parent
b06730f4ef
commit
3d01300ff9
1 changed files with 4 additions and 3 deletions
|
@ -88,9 +88,6 @@ namespace NzbDrone.Core.DecisionEngine
|
||||||
|
|
||||||
_aggregationService.Augment(remoteAlbum);
|
_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
|
// try parsing again using the search criteria, in case it parsed but parsed incorrectly
|
||||||
if ((remoteAlbum.Artist == null || remoteAlbum.Albums.Empty()) && searchCriteria != null)
|
if ((remoteAlbum.Artist == null || remoteAlbum.Albums.Empty()) && searchCriteria != null)
|
||||||
{
|
{
|
||||||
|
@ -129,6 +126,10 @@ namespace NzbDrone.Core.DecisionEngine
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_aggregationService.Augment(remoteAlbum);
|
_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();
|
remoteAlbum.DownloadAllowed = remoteAlbum.Albums.Any();
|
||||||
decision = GetDecisionForReport(remoteAlbum, searchCriteria);
|
decision = GetDecisionForReport(remoteAlbum, searchCriteria);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue