1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-31 03:11:07 +02:00

New: Query 'Season 1.1' groups on BTN during manual single episode searches.

No longer does a season query on auto single episode searches since those would be rejected anyway.
This commit is contained in:
Taloth Saldono 2017-10-25 20:11:03 +02:00
parent 20af2c8c0f
commit 1ef08424ff

View File

@ -56,14 +56,17 @@ public virtual IndexerPageableRequestChain GetSearchRequests(SingleEpisodeSearch
pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
}
foreach (var seasonNumber in searchCriteria.Episodes.Select(v => v.SeasonNumber).Distinct())
if (searchCriteria.UserInvokedSearch)
{
parameters = parameters.Clone();
foreach (var seasonNumber in searchCriteria.Episodes.Select(v => v.SeasonNumber).Distinct())
{
parameters = parameters.Clone();
parameters.Category = "Season";
parameters.Name = string.Format("Season {0}", seasonNumber);
parameters.Category = "Season";
parameters.Name = string.Format("Season {0}%", seasonNumber);
pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
}
}
}