1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-17 21:26:22 -04:00

Fixed: Pass no parameter instead of null parameter on Kodi Update

Fixes #4452
Fixes #4230
This commit is contained in:
Qstick
2020-05-22 18:02:21 -04:00
parent d3d3117bf3
commit 00b9118dbd

View File

@@ -40,7 +40,16 @@ namespace NzbDrone.Core.Notifications.Xbmc
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<XbmcJsonResult<string>>(response).Result;
}