1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-27 23:06:29 -04:00

Fixed: Custom Format upgrading not respecting 'Upgrades Allowed'

This commit is contained in:
Mark McDowall
2024-11-24 15:20:44 -08:00
parent dcbef6b7b7
commit 91c5e6f122
2 changed files with 36 additions and 1 deletions
@@ -135,8 +135,9 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
private bool CustomFormatCutoffNotMet(QualityProfile profile, List<CustomFormat> currentFormats)
{
var score = profile.CalculateCustomFormatScore(currentFormats);
var cutoff = profile.UpgradeAllowed ? profile.CutoffFormatScore : profile.MinFormatScore;
return score < profile.CutoffFormatScore;
return score < cutoff;
}
public bool CutoffNotMet(QualityProfile profile, QualityModel currentQuality, List<CustomFormat> currentFormats, QualityModel newQuality = null)