mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 20:44:00 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user