mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 02:07:41 +00:00
Newznab urls will have any trailing slashes stripped before searching
This commit is contained in:
parent
6296293286
commit
ab9c22f7c1
1 changed files with 2 additions and 2 deletions
|
@ -68,12 +68,12 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
//Todo: We should be able to update settings on start
|
//Todo: We should be able to update settings on start
|
||||||
if (Name.Equals("nzbs.org"))
|
if (Name.Equals("nzbs.org", StringComparison.InvariantCultureIgnoreCase))
|
||||||
{
|
{
|
||||||
Settings.Categories = new List<int>{ 5000 };
|
Settings.Categories = new List<int>{ 5000 };
|
||||||
}
|
}
|
||||||
|
|
||||||
var url = String.Format("{0}/api?t=tvsearch&cat={1}", Settings.Url, String.Join(",", Settings.Categories));
|
var url = String.Format("{0}/api?t=tvsearch&cat={1}", Settings.Url.TrimEnd('/'), String.Join(",", Settings.Categories));
|
||||||
|
|
||||||
if (!String.IsNullOrWhiteSpace(Settings.ApiKey))
|
if (!String.IsNullOrWhiteSpace(Settings.ApiKey))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue