From c20e0667d403813e316ed33dced226e6da746c52 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sat, 30 Jan 2016 21:15:42 +0100 Subject: [PATCH] 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 --- .../BroadcastheNet/BroadcastheNetRequestGenerator.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetRequestGenerator.cs b/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetRequestGenerator.cs index 7a8034440..3747c3e10 100644 --- a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetRequestGenerator.cs @@ -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;