1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed: XBMC will update the series path only when possible

This commit is contained in:
Mark McDowall 2014-09-23 18:18:02 -07:00
parent d5917f34ad
commit 89aa25e016
2 changed files with 2 additions and 7 deletions

View File

@ -89,7 +89,7 @@ private void UpdateLibrary(XbmcSettings settings, Series series)
settings.Address); settings.Address);
} }
var response = _proxy.UpdateLibrary(settings, null); var response = _proxy.UpdateLibrary(settings, seriesPath);
if (!response.Equals("OK", StringComparison.InvariantCultureIgnoreCase)) if (!response.Equals("OK", StringComparison.InvariantCultureIgnoreCase))
{ {

View File

@ -1,15 +1,10 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using Newtonsoft.Json.Linq;
using NLog; using NLog;
using NzbDrone.Common; using NzbDrone.Common;
using NzbDrone.Common.Serializer; using NzbDrone.Common.Serializer;
using NzbDrone.Core.Notifications.Xbmc.Model; using NzbDrone.Core.Notifications.Xbmc.Model;
using NzbDrone.Core.Rest; using NzbDrone.Core.Rest;
using NzbDrone.Core.Tv;
using RestSharp; using RestSharp;
namespace NzbDrone.Core.Notifications.Xbmc namespace NzbDrone.Core.Notifications.Xbmc
@ -56,7 +51,7 @@ public String UpdateLibrary(XbmcSettings settings, String path)
{ {
var request = new RestRequest(); var request = new RestRequest();
var parameters = new Dictionary<String, Object>(); var parameters = new Dictionary<String, Object>();
parameters.Add("directory", path ); parameters.Add("directory", path);
if (path.IsNullOrWhiteSpace()) if (path.IsNullOrWhiteSpace())
{ {