|
|
|
@ -78,7 +78,7 @@ namespace NzbDrone.Core.Indexers.Newznab
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private NewznabSettings GetSettings(string url, params int[] categories)
|
|
|
|
|
private NewznabSettings GetSettings(string url, string apiPath = null, int[] categories = null)
|
|
|
|
|
{
|
|
|
|
|
var settings = new NewznabSettings { BaseUrl = url };
|
|
|
|
|
|
|
|
|
@ -87,6 +87,11 @@ namespace NzbDrone.Core.Indexers.Newznab
|
|
|
|
|
settings.Categories = categories;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (apiPath.IsNotNullOrWhiteSpace())
|
|
|
|
|
{
|
|
|
|
|
settings.ApiPath = apiPath;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return settings;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|