Added additional tier to search for daily series type on BTN to find faux-daily series with SxxExx groups instead of date groups.

fixes #1111
This commit is contained in:
Taloth Saldono 2016-01-30 21:15:42 +01:00
parent 4771b1c1b2
commit c20e0667d4
1 changed files with 12 additions and 0 deletions

View File

@ -96,6 +96,18 @@ namespace NzbDrone.Core.Indexers.BroadcastheNet
parameters.Name = string.Format("{0:yyyy}.{0:MM}.{0:dd}", searchCriteria.AirDate);
pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
pageableRequests.AddTier();
foreach (var episode in searchCriteria.Episodes)
{
parameters = parameters.Clone();
parameters.Category = "Episode";
parameters.Name = string.Format("S{0:00}E{1:00}", episode.SeasonNumber, episode.EpisodeNumber);
pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
}
}
return pageableRequests;