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
1 changed files with 8 additions and 5 deletions

View File

@ -56,14 +56,17 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet
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));
}
}
}