1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

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

View File

@ -96,6 +96,18 @@ public virtual IndexerPageableRequestChain GetSearchRequests(DailyEpisodeSearchC
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;