Fixed: Show a better error message when no episodes are parsed in a release
This commit is contained in:
parent
7a25717da6
commit
9039d7e694
|
@ -78,14 +78,18 @@ namespace NzbDrone.Core.DecisionEngine
|
||||||
var remoteEpisode = _parsingService.Map(parsedEpisodeInfo, report.TvdbId, report.TvRageId, searchCriteria);
|
var remoteEpisode = _parsingService.Map(parsedEpisodeInfo, report.TvdbId, report.TvRageId, searchCriteria);
|
||||||
remoteEpisode.Release = report;
|
remoteEpisode.Release = report;
|
||||||
|
|
||||||
if (remoteEpisode.Series != null)
|
if (remoteEpisode.Series == null)
|
||||||
{
|
{
|
||||||
remoteEpisode.DownloadAllowed = remoteEpisode.Episodes.Any();
|
decision = new DownloadDecision(remoteEpisode, new Rejection("Unknown Series"));
|
||||||
decision = GetDecisionForReport(remoteEpisode, searchCriteria);
|
}
|
||||||
|
else if (remoteEpisode.Episodes.Empty())
|
||||||
|
{
|
||||||
|
decision = new DownloadDecision(remoteEpisode, new Rejection("Unable to parse episodes from release name"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
decision = new DownloadDecision(remoteEpisode, new Rejection("Unknown Series"));
|
remoteEpisode.DownloadAllowed = remoteEpisode.Episodes.Any();
|
||||||
|
decision = GetDecisionForReport(remoteEpisode, searchCriteria);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue