1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

Fixed: Now searching BTN by tvdbid instead of tvrageid to get results for certain series.

This commit is contained in:
Taloth Saldono 2015-02-23 20:13:34 +01:00
parent ca05c15340
commit 4d837a46af

View File

@ -95,16 +95,16 @@ public virtual IList<IEnumerable<IndexerRequest>> GetSearchRequests(SpecialEpiso
private bool AddSeriesSearchParameters(BroadcastheNetTorrentQuery parameters, SearchCriteriaBase searchCriteria) 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) if (searchCriteria.Series.TvdbId != 0)
{ {
parameters.Tvdb = String.Format("{0}", searchCriteria.Series.TvdbId); parameters.Tvdb = String.Format("{0}", searchCriteria.Series.TvdbId);
return true; 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. // BTN is very neatly managed, so it's unlikely they map tvrage/tvdb wrongly.
return false; return false;
} }