mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-22 22:15:17 -04:00
New: Minimum Upgrade Score for Custom Formats
(cherry picked from commit 8b20a9449c1ae5ffd1e8d12f1ca771727b8c52a5)
This commit is contained in:
@@ -95,6 +95,17 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
|
||||
return UpgradeableRejectReason.CustomFormatCutoff;
|
||||
}
|
||||
|
||||
if (newFormatScore < currentFormatScore + qualityProfile.MinUpgradeFormatScore)
|
||||
{
|
||||
_logger.Debug("New item's custom formats [{0}] ({1}) do not meet minimum custom format score increment of {3} required for upgrade, skipping. Existing: [{4}] ({5}).",
|
||||
newCustomFormats.ConcatToString(),
|
||||
newFormatScore,
|
||||
qualityProfile.MinUpgradeFormatScore,
|
||||
currentCustomFormats.ConcatToString(),
|
||||
currentFormatScore);
|
||||
return UpgradeableRejectReason.MinCustomFormatScore;
|
||||
}
|
||||
|
||||
_logger.Debug("New item's custom formats [{0}] ({1}) improve on [{2}] ({3}), accepting",
|
||||
newCustomFormats.ConcatToString(),
|
||||
newFormatScore,
|
||||
|
||||
Reference in New Issue
Block a user