mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Season Search will only search for past episodes if it falls back to that.
This commit is contained in:
parent
1dddf2ffde
commit
75cfb7e044
2 changed files with 65 additions and 31 deletions
|
@ -61,7 +61,7 @@ namespace NzbDrone.Core.Jobs
|
|||
var addedSeries = _searchProvider.PartialSeasonSearch(notification, targetId, secondaryTargetId);
|
||||
|
||||
addedSeries.Distinct().ToList().Sort();
|
||||
var episodeNumbers = episodes.Select(s => s.EpisodeNumber).ToList();
|
||||
var episodeNumbers = episodes.Where(w => w.AirDate <= DateTime.Today.AddDays(1)).Select(s => s.EpisodeNumber).ToList();
|
||||
episodeNumbers.Sort();
|
||||
|
||||
if (addedSeries.SequenceEqual(episodeNumbers))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue