QualityParseTest will accept bool IsProper as a parameter.

IsUpgrade will take into account that a proper of the same quality should be accepted even if the cutoff was met.
This commit is contained in:
Mark McDowall
2012-01-23 08:24:07 -08:00
parent d6d1bbe3f5
commit 197979ea3c
4 changed files with 172 additions and 38 deletions

View File

@@ -125,8 +125,12 @@ namespace NzbDrone.Core.Providers
{
if (currentQuality.QualityType >= cutOff)
{
Logger.Trace("Existing item meets cut-off. skipping.");
return false;
if (newQuality.QualityType > currentQuality.QualityType ||
(newQuality.QualityType == currentQuality.QualityType && newQuality.Proper == currentQuality.Proper))
{
Logger.Trace("Existing item meets cut-off. skipping.");
return false;
}
}
if (newQuality > currentQuality)
@@ -140,7 +144,7 @@ namespace NzbDrone.Core.Providers
if (currentQuality == newQuality && !newQuality.Proper)
{
Logger.Trace("same quality. not proper skipping");
Logger.Trace("Same quality, not proper skipping");
return false;
}