Add a few more cutoff spec logs

pull/6060/head
Qstick 3 years ago
parent ec2c7ec5af
commit 4340b6b922

@ -32,6 +32,8 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
if (file != null)
{
file.Movie = subject.Movie;
_logger.Debug("Comparing file quality with report. Existing file is {0}", file.Quality);
var customFormats = _formatService.ParseCustomFormat(file);
if (!_upgradableSpecification.CutoffNotMet(profile,

@ -93,7 +93,19 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
public bool CutoffNotMet(Profile profile, QualityModel currentQuality, List<CustomFormat> currentFormats, QualityModel newQuality = null)
{
return QualityCutoffNotMet(profile, currentQuality, newQuality) || CustomFormatCutoffNotMet(profile, currentFormats);
if (QualityCutoffNotMet(profile, currentQuality, newQuality))
{
return true;
}
if (CustomFormatCutoffNotMet(profile, currentFormats))
{
return true;
}
_logger.Debug("Existing item meets cut-off. skipping.");
return false;
}
public bool IsRevisionUpgrade(QualityModel currentQuality, QualityModel newQuality)

Loading…
Cancel
Save