Fixed: BTN Anime Season search.

This commit is contained in:
Taloth Saldono 2015-07-07 23:00:25 +02:00
parent dbb3eb0e54
commit 067f450486
1 changed files with 10 additions and 0 deletions

View File

@ -117,6 +117,16 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet
pageableRequest.AddIfNotNull(GetPagedRequests(MaxPages, parameters)); pageableRequest.AddIfNotNull(GetPagedRequests(MaxPages, parameters));
} }
foreach (var seasonNumber in searchCriteria.Episodes.Select(v => v.SeasonNumber).Distinct())
{
parameters = parameters.Clone();
parameters.Category = "Season";
parameters.Name = String.Format("Season {0}", seasonNumber);
pageableRequest.AddIfNotNull(GetPagedRequests(MaxPages, parameters));
}
} }
return pageableRequest; return pageableRequest;