1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00
This commit is contained in:
Qstick
2021-08-03 00:43:28 -04:00
committed by Mark McDowall
parent 878d1561aa
commit 1c22a1ec0d
1201 changed files with 5620 additions and 4303 deletions
@@ -85,7 +85,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
_logger.Debug("Existing item has better language, skipping");
return false;
}
if (!IsPreferredWordUpgradable(currentScore, newScore))
{
_logger.Debug("Existing item has an equal or better preferred word score, skipping");
@@ -168,8 +168,8 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
var isQualityUpgrade = new QualityModelComparer(qualityProfile).Compare(newQuality, currentQuality) > 0;
var isLanguageUpgrade = new LanguageComparer(languageProfile).Compare(newLanguage, currentLanguage) > 0;
if (isQualityUpgrade && qualityProfile.UpgradeAllowed ||
isLanguageUpgrade && languageProfile.UpgradeAllowed)
if ((isQualityUpgrade && qualityProfile.UpgradeAllowed) ||
(isLanguageUpgrade && languageProfile.UpgradeAllowed))
{
_logger.Debug("At least one profile allows upgrading");
return true;