mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-03-02 11:44:32 +00:00
Use sane IDs for XBMC JSON RPC calls
This commit is contained in:
@@ -215,7 +215,7 @@ namespace NzbDrone.Core.Notifications.Xbmc
|
||||
postJson.Add(new JProperty("params", parameters));
|
||||
}
|
||||
|
||||
postJson.Add(new JProperty("id", DateTime.Now.Ticks));
|
||||
postJson.Add(new JProperty("id", 2));
|
||||
|
||||
return postJson;
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace NzbDrone.Core.Notifications.Xbmc
|
||||
var postJson = new JObject();
|
||||
postJson.Add(new JProperty("jsonrpc", "2.0"));
|
||||
postJson.Add(new JProperty("method", "JSONRPC.Version"));
|
||||
postJson.Add(new JProperty("id", DateTime.Now.Ticks));
|
||||
postJson.Add(new JProperty("id", 1));
|
||||
|
||||
var response = _httpProvider.PostCommand(settings.Address, settings.Username, settings.Password, postJson.ToString());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user