mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-24 22:37:06 -04:00
Pass no parameter instead of null parameter on Kodi Update
This commit is contained in:
parent
427ce17e6e
commit
f701adaef5
1 changed files with 10 additions and 1 deletions
|
@ -40,7 +40,16 @@ namespace NzbDrone.Core.Notifications.Xbmc
|
||||||
|
|
||||||
public string UpdateLibrary(XbmcSettings settings, string path)
|
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;
|
return Json.Deserialize<XbmcJsonResult<string>>(response).Result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue