1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Use sane IDs for XBMC JSON RPC calls

This commit is contained in:
Mark McDowall 2014-06-08 23:03:23 -07:00
parent 052a3bf47e
commit 61ec9aff27
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ private JObject BuildJsonRequest(string method, JObject parameters)
postJson.Add(new JProperty("params", parameters));
}
postJson.Add(new JProperty("id", DateTime.Now.Ticks));
postJson.Add(new JProperty("id", 2));
return postJson;
}

View File

@ -58,7 +58,7 @@ public XbmcVersion GetJsonVersion(XbmcSettings settings)
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());