1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-17 10:45:49 +02:00

Pass no parameter instead of null parameter on Kodi Update

This commit is contained in:
Qstick 2020-05-22 18:02:21 -04:00 committed by Mark McDowall
parent 427ce17e6e
commit f701adaef5

View File

@ -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<XbmcJsonResult<string>>(response).Result;
}