Fixed blacklist being ignored by download decision maker.

This commit is contained in:
Leonardo Galli 2017-01-20 17:48:47 +01:00
parent 55a525ba2f
commit b1c5a3ac14
1 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,11 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
{
throw new NotImplementedException();
if (_blacklistService.Blacklisted(subject.Movie.Id, subject.Release))
{
_logger.Debug("{0} is blacklisted, rejecting.", subject.Release.Title);
return Decision.Reject("Release is blacklisted");
}
return Decision.Accept();
}