Configurable URL Base setting for Kodi connections

sonarr-pull-e81bb3b9
Bogdan 9 months ago
parent 47e647ddb1
commit c9743448fd

@ -83,7 +83,7 @@ namespace NzbDrone.Core.Notifications.Xbmc
private string ProcessRequest(XbmcSettings settings, string method, params object[] parameters)
{
var url = HttpRequestBuilder.BuildBaseUrl(settings.UseSsl, settings.Host, settings.Port, "jsonrpc");
var url = HttpRequestBuilder.BuildBaseUrl(settings.UseSsl, settings.Host, settings.Port, settings.UrlBase);
var requestBuilder = new JsonRpcRequestBuilder(url, method, parameters);
requestBuilder.LogResponseContent = true;

@ -20,11 +20,12 @@ namespace NzbDrone.Core.Notifications.Xbmc
public class XbmcSettings : IProviderConfig
{
private static readonly XbmcSettingsValidator Validator = new XbmcSettingsValidator();
private static readonly XbmcSettingsValidator Validator = new ();
public XbmcSettings()
{
Port = 8080;
UrlBase = "/jsonrpc";
DisplayTime = 5;
}

Loading…
Cancel
Save