mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Removed un-needed call from Episode Search.
InventoryProvider.IsAcceptableSize will now handle daily series properly.
This commit is contained in:
parent
e01be46209
commit
1b0cdf922e
3 changed files with 30 additions and 8 deletions
|
@ -131,23 +131,21 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
notification.CurrentMessage = "Searching for " + episode;
|
||||
|
||||
var series = _seriesProvider.GetSeries(episode.SeriesId);
|
||||
|
||||
if (episode.Series.IsDaily && !episode.AirDate.HasValue)
|
||||
{
|
||||
Logger.Warn("AirDate is not Valid for: {0}", episode);
|
||||
return false;
|
||||
}
|
||||
|
||||
var reports = PerformSearch(notification, series, episode.SeasonNumber, new List<Episode> { episode });
|
||||
var reports = PerformSearch(notification, episode.Series, episode.SeasonNumber, new List<Episode> { episode });
|
||||
|
||||
Logger.Debug("Finished searching all indexers. Total {0}", reports.Count);
|
||||
notification.CurrentMessage = "Processing search results";
|
||||
|
||||
if (!series.IsDaily && ProcessSearchResults(notification, reports, series, episode.SeasonNumber, episode.EpisodeNumber).Count == 1)
|
||||
if (!episode.Series.IsDaily && ProcessSearchResults(notification, reports, episode.Series, episode.SeasonNumber, episode.EpisodeNumber).Count == 1)
|
||||
return true;
|
||||
|
||||
if (series.IsDaily && ProcessSearchResults(notification, reports, series, episode.AirDate.Value))
|
||||
if (episode.Series.IsDaily && ProcessSearchResults(notification, reports, episode.Series, episode.AirDate.Value))
|
||||
return true;
|
||||
|
||||
Logger.Warn("Unable to find {0} in any of indexers.", episode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue