From 00b9118dbd7fe9bb720bbbd958891021d879b6d0 Mon Sep 17 00:00:00 2001 From: Qstick Date: Fri, 22 May 2020 18:02:21 -0400 Subject: [PATCH] Fixed: Pass no parameter instead of null parameter on Kodi Update Fixes #4452 Fixes #4230 --- .../Notifications/Xbmc/XbmcJsonApiProxy.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Notifications/Xbmc/XbmcJsonApiProxy.cs b/src/NzbDrone.Core/Notifications/Xbmc/XbmcJsonApiProxy.cs index 1de11488d..153cad05d 100644 --- a/src/NzbDrone.Core/Notifications/Xbmc/XbmcJsonApiProxy.cs +++ b/src/NzbDrone.Core/Notifications/Xbmc/XbmcJsonApiProxy.cs @@ -40,7 +40,16 @@ public void Notify(XbmcSettings settings, string title, string message) public string UpdateLibrary(XbmcSettings settings, string path) { - var response = ProcessRequest(settings, "VideoLibrary.Scan", path); + string response; + + if (path == null) + { + response = ProcessRequest(settings, "VideoLibrary.Scan"); + } + else + { + response = ProcessRequest(settings, "VideoLibrary.Scan", path); + } return Json.Deserialize>(response).Result; }