Fixed: Series search will skip Seasons that are not monitored

pull/2/head
Mark McDowall 11 years ago
parent 61d1026fb8
commit 760bcbb2ce

@ -19,10 +19,10 @@ namespace NzbDrone.Core.HealthCheck.Checks
public override HealthCheck Check()
{
var missingRootFolders = _seriesService.GetAllSeries()
.Select(s => _diskProvider.GetParentFolder(s.Path))
.Distinct()
.Where(s => !_diskProvider.FolderExists(s))
.ToList();
.Select(s => _diskProvider.GetParentFolder(s.Path))
.Distinct()
.Where(s => !_diskProvider.FolderExists(s))
.ToList();
if (missingRootFolders.Any())
{

@ -32,6 +32,12 @@ namespace NzbDrone.Core.IndexerSearch
foreach (var season in series.Seasons)
{
if (!season.Monitored)
{
_logger.Debug("Season {0} of {1} is not monitored, skipping seaarch", season.SeasonNumber, series.Title);
continue;
}
var decisions = _nzbSearchService.SeasonSearch(message.SeriesId, season.SeasonNumber);
downloadedCount += _downloadApprovedReports.DownloadApproved(decisions).Count;
}

Loading…
Cancel
Save