1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-25 01:11:43 +00:00

Better search urls for NzbMatrix

This commit is contained in:
Mark McDowall 2012-11-16 08:08:48 -08:00
parent c9056998cf
commit 6f308b54f2

View file

@ -72,8 +72,7 @@ protected override IList<string> GetSeasonSearchUrls(string seriesTitle, int sea
foreach (var url in Urls)
{
searchUrls.Add(String.Format("{0}&term={1}+Season", url, seriesTitle));
searchUrls.Add(String.Format("{0}&term={1}+S{2:00}", url, seriesTitle, seasonNumber));
searchUrls.Add(String.Format("{0}&term=(\"{1}+Season\",\"{1}+S{2:00}\")", url, seriesTitle, seasonNumber));
}
return searchUrls;
@ -85,7 +84,7 @@ protected override IList<string> GetPartialSeasonSearchUrls(string seriesTitle,
foreach (var url in Urls)
{
searchUrls.Add(String.Format("{0}&term={1}+S{2:00}E{3}", url, seriesTitle, seasonNumber, episodeWildcard));
searchUrls.Add(String.Format("{0}&term=(\"{1}+S{2:00}E{3}\", \"{1}+{2}x{3}\")", url, seriesTitle, seasonNumber, episodeWildcard));
}
return searchUrls;