mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-04 06:38:28 +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:
parent
20af2c8c0f
commit
1ef08424ff
@ -56,14 +56,17 @@ public virtual IndexerPageableRequestChain GetSearchRequests(SingleEpisodeSearch
|
|||||||
pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
|
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.Category = "Season";
|
||||||
parameters.Name = string.Format("Season {0}", seasonNumber);
|
parameters.Name = string.Format("Season {0}%", seasonNumber);
|
||||||
|
|
||||||
pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
|
pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user