Fixed: Interactive search for anime season even if all episodes are unmonitored
Fixes #3791
This commit is contained in:
parent
f2e1b4e435
commit
9f54ff8169
|
@ -239,8 +239,20 @@ namespace NzbDrone.Core.IndexerSearch
|
|||
{
|
||||
var downloadDecisions = new List<DownloadDecision>();
|
||||
|
||||
// Only search for aired episodes when performing a season anime search
|
||||
foreach (var episode in episodes.Where(e => e.Monitored && e.AirDateUtc.HasValue && e.AirDateUtc.Value.Before(DateTime.UtcNow)))
|
||||
|
||||
var episodesToSearch = episodes.Where(e =>
|
||||
{
|
||||
// Episode needs to be monitored if it's not an interactive search
|
||||
if (!interactiveSearch && !e.Monitored)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Ensure episode has an airdate and has already aired
|
||||
return e.AirDateUtc.HasValue && e.AirDateUtc.Value.Before(DateTime.UtcNow);
|
||||
});
|
||||
|
||||
foreach (var episode in episodesToSearch)
|
||||
{
|
||||
downloadDecisions.AddRange(SearchAnime(series, episode, userInvokedSearch, interactiveSearch, true));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue