Delay Profile: Upgradable Check Fix

Only do the upgradable file check if there are exisitng files.
vertigo235 8 years ago
parent 1d0a6af7d7
commit b6235e99c8

@ -36,7 +36,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
return Decision.Accept(); return Decision.Accept();
} }
public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria) public virtual Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
{ {
if (subject.Movie.MovieFile.Value != null) if (subject.Movie.MovieFile.Value != null)
{ {

@ -49,7 +49,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.RssSync
var comparer = new QualityModelComparer(profile); var comparer = new QualityModelComparer(profile);
if (isPreferredProtocol) if (isPreferredProtocol && (subject.Movie.MovieFileId != 0))
{ {
var upgradable = _qualityUpgradableSpecification.IsUpgradable(profile, subject.Movie.MovieFile.Value.Quality, subject.ParsedMovieInfo.Quality); var upgradable = _qualityUpgradableSpecification.IsUpgradable(profile, subject.Movie.MovieFile.Value.Quality, subject.ParsedMovieInfo.Quality);

Loading…
Cancel
Save