mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Fix build due to apiPath setting in Newznab presets
This commit is contained in:
parent
67eb2f2313
commit
75db57c138
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue