Fix download rejections being ignored.

This commit is contained in:
Leonardo Galli 2017-01-10 21:25:36 +01:00
commit e7fa4cba19
2 changed files with 8 additions and 2 deletions

View file

@ -83,7 +83,7 @@ namespace NzbDrone.Core.DecisionEngine
{ {
if (parsedEpisodeInfo.Quality.HardcodedSubs.IsNotNullOrWhiteSpace()) if (parsedEpisodeInfo.Quality.HardcodedSubs.IsNotNullOrWhiteSpace())
{ {
remoteEpisode.DownloadAllowed = true; remoteEpisode.DownloadAllowed = false;
decision = new DownloadDecision(remoteEpisode, new Rejection("Hardcoded subs found: " + parsedEpisodeInfo.Quality.HardcodedSubs)); decision = new DownloadDecision(remoteEpisode, new Rejection("Hardcoded subs found: " + parsedEpisodeInfo.Quality.HardcodedSubs));
} }
else else
@ -257,7 +257,7 @@ namespace NzbDrone.Core.DecisionEngine
} }
catch (NotImplementedException e) catch (NotImplementedException e)
{ {
_logger.Info("Spec " + spec.GetType().Name + " does not care about movies."); _logger.Trace("Spec " + spec.GetType().Name + " does not care about movies.");
} }
catch (Exception e) catch (Exception e)
{ {

View file

@ -51,6 +51,12 @@ namespace NzbDrone.Core.Download
continue; continue;
} }
if (report.Rejections.Any())
{
_logger.Debug("Rejecting release {0} because {1}", report.ToString(), report.Rejections.First().Reason);
continue;
}
if (remoteMovie == null || remoteMovie.Movie == null) if (remoteMovie == null || remoteMovie.Movie == null)
{ {
continue; continue;