mirror of
https://github.com/Lidarr/Lidarr.git
synced 2026-05-06 15:13:01 -05:00
Pass no parameter instead of null parameter on Kodi Update
This commit is contained in:
@@ -40,7 +40,16 @@ namespace NzbDrone.Core.Notifications.Xbmc
|
||||
|
||||
public string UpdateLibrary(XbmcSettings settings, string path)
|
||||
{
|
||||
var response = ProcessRequest(settings, "AudioLibrary.Scan", path);
|
||||
string response;
|
||||
|
||||
if (path == null)
|
||||
{
|
||||
response = ProcessRequest(settings, "AudioLibrary.Scan");
|
||||
}
|
||||
else
|
||||
{
|
||||
response = ProcessRequest(settings, "AudioLibrary.Scan", path);
|
||||
}
|
||||
|
||||
return Json.Deserialize<XbmcJsonResult<string>>(response).Result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user