mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
limited newzbin search to English only.
This commit is contained in:
parent
555e62fd17
commit
cd96d546e8
2 changed files with 20 additions and 15 deletions
|
@ -10,19 +10,21 @@ namespace NzbDrone.Core.Providers.Indexer
|
|||
{
|
||||
public class Newzbin : IndexerBase
|
||||
{
|
||||
[Inject]
|
||||
[Inject]
|
||||
public Newzbin(HttpProvider httpProvider, ConfigProvider configProvider)
|
||||
: base(httpProvider, configProvider)
|
||||
{
|
||||
}
|
||||
|
||||
private const string UrlParams = "feed=rss&hauth=1&ps_rb_language=4096";
|
||||
|
||||
protected override string[] Urls
|
||||
{
|
||||
get
|
||||
{
|
||||
return new[]
|
||||
{
|
||||
"http://www.newzbin.com/browse/category/p/tv?feed=rss&hauth=1"
|
||||
"http://www.newzbin.com/browse/category/p/tv?" + UrlParams
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +40,7 @@ namespace NzbDrone.Core.Providers.Indexer
|
|||
protected override IList<string> GetSearchUrls(string seriesTitle, int seasonNumber, int episodeNumber)
|
||||
{
|
||||
|
||||
return new List<string> { String.Format(@"http://www.newzbin.com/search/query/?q={0}+{1}x{2:00}&fpn=p&searchaction=Go&category=8&feed=rss&hauth=1", GetQueryTitle(seriesTitle), seasonNumber, episodeNumber) };
|
||||
return new List<string> { String.Format(@"http://www.newzbin.com/search/query/?q={0}+{1}x{2:00}&fpn=p&searchaction=Go&category=8&{3}", GetQueryTitle(seriesTitle), seasonNumber, episodeNumber, UrlParams) };
|
||||
}
|
||||
|
||||
public override string Name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue