From 89aa25e016717eda118f4fc470e505e995a77446 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 23 Sep 2014 18:18:02 -0700 Subject: [PATCH] Fixed: XBMC will update the series path only when possible --- src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs | 2 +- src/NzbDrone.Core/Notifications/Xbmc/XbmcJsonApiProxy.cs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs b/src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs index 1818cc0a4..aa3954e41 100644 --- a/src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs +++ b/src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs @@ -89,7 +89,7 @@ namespace NzbDrone.Core.Notifications.Xbmc settings.Address); } - var response = _proxy.UpdateLibrary(settings, null); + var response = _proxy.UpdateLibrary(settings, seriesPath); if (!response.Equals("OK", StringComparison.InvariantCultureIgnoreCase)) { diff --git a/src/NzbDrone.Core/Notifications/Xbmc/XbmcJsonApiProxy.cs b/src/NzbDrone.Core/Notifications/Xbmc/XbmcJsonApiProxy.cs index a5186bcba..703847ea3 100644 --- a/src/NzbDrone.Core/Notifications/Xbmc/XbmcJsonApiProxy.cs +++ b/src/NzbDrone.Core/Notifications/Xbmc/XbmcJsonApiProxy.cs @@ -1,15 +1,10 @@ using System; using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Text; -using Newtonsoft.Json.Linq; using NLog; using NzbDrone.Common; using NzbDrone.Common.Serializer; using NzbDrone.Core.Notifications.Xbmc.Model; using NzbDrone.Core.Rest; -using NzbDrone.Core.Tv; using RestSharp; namespace NzbDrone.Core.Notifications.Xbmc @@ -56,7 +51,7 @@ namespace NzbDrone.Core.Notifications.Xbmc { var request = new RestRequest(); var parameters = new Dictionary(); - parameters.Add("directory", path ); + parameters.Add("directory", path); if (path.IsNullOrWhiteSpace()) {