|
|
@ -68,30 +68,34 @@ namespace NzbDrone.Core.DecisionEngine
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var parsedMovieInfo = Parser.Parser.ParseMovieTitle(report.Title);
|
|
|
|
var parsedMovieInfo = Parser.Parser.ParseMovieTitle(report.Title);
|
|
|
|
|
|
|
|
|
|
|
|
if (parsedMovieInfo != null && !parsedMovieInfo.MovieTitle.IsNullOrWhiteSpace())
|
|
|
|
if (parsedMovieInfo != null && !parsedMovieInfo.MovieTitle.IsNullOrWhiteSpace())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
RemoteMovie remoteMovie = _parsingService.Map(parsedMovieInfo, report.ImdbId.ToString(), searchCriteria);
|
|
|
|
RemoteMovie remoteMovie = _parsingService.Map(parsedMovieInfo, report.ImdbId.ToString(), searchCriteria);
|
|
|
|
remoteMovie.Release = report;
|
|
|
|
remoteMovie.Release = report;
|
|
|
|
|
|
|
|
|
|
|
|
if (remoteMovie.Movie == null)
|
|
|
|
if (remoteMovie.Movie == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
decision = new DownloadDecision(remoteMovie, new Rejection("Unknown movie. Movie found does not match wanted movie."));
|
|
|
|
decision = new DownloadDecision(remoteMovie, new Rejection("Unknown movie. Movie found does not match wanted movie."));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (parsedMovieInfo.Quality.HardcodedSubs.IsNotNullOrWhiteSpace())
|
|
|
|
if (parsedMovieInfo.Quality.HardcodedSubs.IsNotNullOrWhiteSpace())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
remoteMovie.DownloadAllowed = true;
|
|
|
|
remoteMovie.DownloadAllowed = true;
|
|
|
|
decision = new DownloadDecision(remoteMovie, new Rejection("Hardcoded subs found: " + parsedMovieInfo.Quality.HardcodedSubs));
|
|
|
|
decision = new DownloadDecision(remoteMovie, new Rejection("Hardcoded subs found: " + parsedMovieInfo.Quality.HardcodedSubs));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
remoteMovie.DownloadAllowed = true;
|
|
|
|
remoteMovie.DownloadAllowed = true;
|
|
|
|
decision = GetDecisionForReport(remoteMovie, searchCriteria);
|
|
|
|
decision = GetDecisionForReport(remoteMovie, searchCriteria);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.Trace("{0} could not be parsed :(.", report.Title);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|