Fixed: Interactive search results failing to show when processing failed

Closes #3377
pull/3396/head
Mark McDowall 5 years ago
parent 70bb4d71e6
commit 4123745a6b

@ -114,14 +114,27 @@ namespace NzbDrone.Core.DecisionEngine
}
}
if (parsedEpisodeInfo == null || parsedEpisodeInfo.SeriesTitle.IsNullOrWhiteSpace() && searchCriteria != null)
if (searchCriteria != null)
{
var remoteEpisode = new RemoteEpisode
if (parsedEpisodeInfo == null)
{
Release = report
};
parsedEpisodeInfo = new ParsedEpisodeInfo
{
Language = LanguageParser.ParseLanguage(report.Title),
Quality = QualityParser.ParseQuality(report.Title)
};
}
if (parsedEpisodeInfo.SeriesTitle.IsNullOrWhiteSpace())
{
var remoteEpisode = new RemoteEpisode
{
Release = report,
ParsedEpisodeInfo = parsedEpisodeInfo
};
decision = new DownloadDecision(remoteEpisode, new Rejection("Unable to parse release"));
decision = new DownloadDecision(remoteEpisode, new Rejection("Unable to parse release"));
}
}
}
catch (Exception e)

@ -163,9 +163,8 @@ namespace Sonarr.Api.V3.Indexers
catch (Exception ex)
{
_logger.Error(ex, "Episode search failed: " + ex.Message);
throw new NzbDroneClientException(HttpStatusCode.InternalServerError, ex.Message);
}
return new List<ReleaseResource>();
}
private List<ReleaseResource> GetSeasonReleases(int seriesId, int seasonNumber)
@ -184,9 +183,8 @@ namespace Sonarr.Api.V3.Indexers
catch (Exception ex)
{
_logger.Error(ex, "Season search failed: " + ex.Message);
throw new NzbDroneClientException(HttpStatusCode.InternalServerError, ex.Message);
}
return new List<ReleaseResource>();
}
private List<ReleaseResource> GetRss()

Loading…
Cancel
Save