mirror of
https://github.com/Radarr/Radarr
synced 2024-12-27 18:30:45 +00:00
Fixed: Pass no parameter instead of null parameter on Kodi Update
Fixes #4452 Fixes #4230
This commit is contained in:
parent
d3d3117bf3
commit
00b9118dbd
1 changed files with 10 additions and 1 deletions
|
@ -40,7 +40,16 @@ public void Notify(XbmcSettings settings, string title, string message)
|
||||||
|
|
||||||
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…
Reference in a new issue