1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 12:32:31 +01:00

Add a few more cutoff spec logs

This commit is contained in:
Qstick 2021-03-14 23:38:15 -04:00
parent ec2c7ec5af
commit 4340b6b922
2 changed files with 15 additions and 1 deletions

View File

@ -32,6 +32,8 @@ public virtual Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase se
if (file != null) if (file != null)
{ {
file.Movie = subject.Movie; file.Movie = subject.Movie;
_logger.Debug("Comparing file quality with report. Existing file is {0}", file.Quality);
var customFormats = _formatService.ParseCustomFormat(file); var customFormats = _formatService.ParseCustomFormat(file);
if (!_upgradableSpecification.CutoffNotMet(profile, if (!_upgradableSpecification.CutoffNotMet(profile,

View File

@ -93,7 +93,19 @@ private bool CustomFormatCutoffNotMet(Profile profile, List<CustomFormat> curren
public bool CutoffNotMet(Profile profile, QualityModel currentQuality, List<CustomFormat> currentFormats, QualityModel newQuality = null) 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) public bool IsRevisionUpgrade(QualityModel currentQuality, QualityModel newQuality)