mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 04:22:30 +01:00
Fixed: Failing missing episode search when one search fails
Closes #917
This commit is contained in:
parent
c419e7b710
commit
b02b9f026f
@ -49,14 +49,32 @@ private void SearchForMissingEpisodes(List<Episode> episodes)
|
||||
List<DownloadDecision> decisions;
|
||||
|
||||
if (season.Count() > 1)
|
||||
{
|
||||
try
|
||||
{
|
||||
decisions = _nzbSearchService.SeasonSearch(series.Key, season.Key, true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
var message = String.Format("Unable to search for missing episodes in season {0} of [{1}]", season.Key, series.Key);
|
||||
_logger.ErrorException(message, ex);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
decisions = _nzbSearchService.EpisodeSearch(season.First());
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
var message = String.Format("Unable to search for missing episode: [{0}]", season.First());
|
||||
_logger.ErrorException(message, ex);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
var processed = _processDownloadDecisions.ProcessDecisions(decisions);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user