Ejemplo n.º 1
0
        public Decision IsSatisfiedBy(RemoteEpisode subject, SearchCriteriaBase searchCriteria)
        {
            if (_blacklistService.Blacklisted(subject.Series.Id, subject.Release))
            {
                _logger.Debug("{0} is blacklisted, rejecting.", subject.Release.Title);
                return(Decision.Reject("Release is blacklisted"));
            }

            return(Decision.Accept());
        }
Ejemplo n.º 2
0
        public Decision IsSatisfiedBy(RemoteEpisode subject, SearchCriteriaBase searchCriteria)
        {
            if (!_configService.EnableFailedDownloadHandling)
            {
                _logger.Debug("Failed Download Handling is not enabled");
                return(Decision.Accept());
            }

            if (_blacklistService.Blacklisted(subject.Series.Id, subject.Release.Title, subject.Release.PublishDate))
            {
                _logger.Debug("{0} is blacklisted, rejecting.", subject.Release.Title);
                return(Decision.Reject("Release is blacklisted"));
            }

            return(Decision.Accept());
        }