mirror of https://github.com/Sonarr/Sonarr
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,16 +56,19 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet
|
||||||
pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
|
pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (searchCriteria.UserInvokedSearch)
|
||||||
|
{
|
||||||
foreach (var seasonNumber in searchCriteria.Episodes.Select(v => v.SeasonNumber).Distinct())
|
foreach (var seasonNumber in searchCriteria.Episodes.Select(v => v.SeasonNumber).Distinct())
|
||||||
{
|
{
|
||||||
parameters = parameters.Clone();
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return pageableRequests;
|
return pageableRequests;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue