From 4d837a46afdb22098b9f38d6af97668da372df37 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Mon, 23 Feb 2015 20:13:34 +0100 Subject: [PATCH] Fixed: Now searching BTN by tvdbid instead of tvrageid to get results for certain series. --- .../BroadcastheNet/BroadcastheNetRequestGenerator.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetRequestGenerator.cs b/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetRequestGenerator.cs index 3338e0c41..94e331cbb 100644 --- a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetRequestGenerator.cs @@ -95,16 +95,16 @@ public virtual IList> GetSearchRequests(SpecialEpiso private bool AddSeriesSearchParameters(BroadcastheNetTorrentQuery parameters, SearchCriteriaBase searchCriteria) { - if (searchCriteria.Series.TvRageId != 0) - { - parameters.Tvrage = String.Format("{0}", searchCriteria.Series.TvRageId); - return true; - } if (searchCriteria.Series.TvdbId != 0) { parameters.Tvdb = String.Format("{0}", searchCriteria.Series.TvdbId); return true; } + if (searchCriteria.Series.TvRageId != 0) + { + parameters.Tvrage = String.Format("{0}", searchCriteria.Series.TvRageId); + return true; + } // BTN is very neatly managed, so it's unlikely they map tvrage/tvdb wrongly. return false; }