From 61ec9aff27dd70e2d7e1d497847af9527957ff67 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 8 Jun 2014 23:03:23 -0700 Subject: [PATCH] Use sane IDs for XBMC JSON RPC calls --- src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs | 2 +- src/NzbDrone.Core/Notifications/Xbmc/XbmcService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs b/src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs index ef39eb353..0f933b570 100644 --- a/src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs +++ b/src/NzbDrone.Core/Notifications/Xbmc/JsonApiProvider.cs @@ -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; } diff --git a/src/NzbDrone.Core/Notifications/Xbmc/XbmcService.cs b/src/NzbDrone.Core/Notifications/Xbmc/XbmcService.cs index 7e3c236e7..ce94da593 100644 --- a/src/NzbDrone.Core/Notifications/Xbmc/XbmcService.cs +++ b/src/NzbDrone.Core/Notifications/Xbmc/XbmcService.cs @@ -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());