Delay Profile: Upgradable Check Fix

Only do the upgradable file check if there are exisitng files.
This commit is contained in:
vertigo235 2017-02-04 01:07:26 -05:00
parent 1d0a6af7d7
commit b6235e99c8
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{ {

View File

@ -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);