From 93105cfff7d167385abfe5bf4e8cba5fcdab72c1 Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 5 Aug 2020 13:23:57 -0400 Subject: [PATCH] Fix build due to apiPath setting in Newznab presets --- src/NzbDrone.Core/Indexers/Newznab/Newznab.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs b/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs index 712e63ff9..e38b40f3d 100644 --- a/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs +++ b/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs @@ -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; }