mirror of
https://github.com/Radarr/Radarr
synced 2024-12-31 20:35:37 +00:00
Fixed: Show a better error message when no episodes are parsed in a release
This commit is contained in:
parent
7a25717da6
commit
9039d7e694
1 changed files with 8 additions and 4 deletions
|
@ -78,14 +78,18 @@ private IEnumerable<DownloadDecision> GetDecisions(List<ReleaseInfo> reports, Se
|
||||||
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 a new issue