mirror of
https://github.com/Readarr/Readarr
synced 2026-05-05 03:00:35 +02:00
Fixed: Series search will skip Seasons that are not monitored
This commit is contained in:
parent
61d1026fb8
commit
760bcbb2ce
2 changed files with 10 additions and 4 deletions
|
|
@ -19,10 +19,10 @@ public RootFolderCheck(ISeriesService seriesService, IDiskProvider diskProvider)
|
||||||
public override HealthCheck Check()
|
public override HealthCheck Check()
|
||||||
{
|
{
|
||||||
var missingRootFolders = _seriesService.GetAllSeries()
|
var missingRootFolders = _seriesService.GetAllSeries()
|
||||||
.Select(s => _diskProvider.GetParentFolder(s.Path))
|
.Select(s => _diskProvider.GetParentFolder(s.Path))
|
||||||
.Distinct()
|
.Distinct()
|
||||||
.Where(s => !_diskProvider.FolderExists(s))
|
.Where(s => !_diskProvider.FolderExists(s))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
if (missingRootFolders.Any())
|
if (missingRootFolders.Any())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,12 @@ public void Execute(SeriesSearchCommand message)
|
||||||
|
|
||||||
foreach (var season in series.Seasons)
|
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);
|
var decisions = _nzbSearchService.SeasonSearch(message.SeriesId, season.SeasonNumber);
|
||||||
downloadedCount += _downloadApprovedReports.DownloadApproved(decisions).Count;
|
downloadedCount += _downloadApprovedReports.DownloadApproved(decisions).Count;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue