JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174) +---- Thread: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC (/showthread.php?tid=68263) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
|
RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Zernable - 2013-02-13 Just when I thought I was getting a good grasp on the JSON syntax I'm getting an error that I can't figure out why. I'm trying to update several movie parameters at once. It seems as though if I do the movieid and one other parameter, it's successful, but if I add one (or more) additional parameters, then I get an error such as the one below. I'm sure it's something simple, but I haven't been able to figure out what I'm doing wrong. What I'm trying: Code: {"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "params": {"movieid": 130, "Movietitle": "Moviename", "plot": "this is where the plot goes"}, "id": 1} Error in return: Code: {"error":{"code":-32602,"data":{"message":"Too many parameters","method":"VideoLibrary.SetMovieDetails","stack":{"name":"plot","type":["null","string"]}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"} RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - N3MIS15 - 2013-02-13 "Movietitle" should just be "title" RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Zernable - 2013-02-13 Ugh.. you know how many times I looked at the API details for that on the wiki page and I *never* noticed that. Sure enough, it's spelled out as plain as can be "[ Optional.String title = null ]". Thanks N3MIS15! RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-02-23 Just discover a strange limitation in Player.PlayPause. If you force play while in fastforwarding or rewinding then the player does not change to play but keeps it's current state. This behavior is quite different from gui or eventserver. https://github.com/xbmc/xbmc/pull/2301 RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - dwagner - 2013-02-26 Is there a way to get lastmodifieddate from List.Item.File in a specific format, or alternatively is there a way to query the International Region setting? Otherwise there is no way to really tell whether a date such as 01/02/13 is 2 Jan or 1 Feb RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2013-02-26 I was told that dates are in SQL format so YYYY-MM-DD HH:MM:SS no matter the local system settings. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - dwagner - 2013-02-26 My tests prove otherwise. US 24 hour "lastmodified":"01/24/2013 16:31:32" UK 24 hour "lastmodified":"24/01/2013 16:31:32" UK 12 hour "lastmodified":"24/01/2013 4:31:32 PM" RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-02-26 For some reason yet unknown to me "lastmodified" is provided in localized datetime representation whereas all other dates are provided in SQL format as stated by Tolriq. Will have to check if there's a reason for it or not. Odp: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Marx1 - 2013-03-01 Is it possible to use scraper remotely? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-03-01 Currently not. There has been some initial work on this but that was quite a while ago and it needs to be adapted to the current state of the code. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Roman_V_M - 2013-03-01 Is it possible to get the full path to a currently played item via json-rpc? "Player.GetItem" returns only a library name/file name. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-03-01 (2013-03-01, 18:47)Roman_V_M Wrote: Is it possible to get the full path to a currently played item via json-rpc? "Player.GetItem" returns only a library name/file name.The "file" property should provide you with the full path as used by XBMC. Obviously that might not be accessible on a remote computer if it's a local drive or something like that. EDIT: Tested and works fine for me. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Marx1 - 2013-03-01 (2013-03-01, 18:46)Montellese Wrote: Currently not. There has been some initial work on this but that was quite a while ago and it needs to be adapted to the current state of the code. Is it planned to merge it into stable, or it's only experiment? I think it would be beneficial for media managers authors, and users of those managers using foreign languages. Now media managers use mainly English websites, and authors need to write their owns scrapers, while scrapers already exists in xbmc ready for use. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Anthirian - 2013-03-02 Apologies if this has already been explained, but I couldn't find it by searching. I am trying to perform filtering on multiple criteria using one RPC. Is this possible? I have tried stuffing both filters in a list Code: {"params": {"filter": [{"operator": "is", "field": "playcount", "value": "0"}, {"operator": "greaterthan", "field": "rating", "value": "2"}], "properties": ["rating", "playcount", "lastplayed", "file", "resume", "tvshowid"], "limits": {"end": 2}}, "jsonrpc": "2.0", "method": "VideoLibrary.GetEpisodes", "id": 1} Code: {"error":{"code":-32602,"data":{"method":"VideoLibrary.GetEpisodes","stack":{"message":"Invalid type array received","name":"filter","property":{"name":"end","type":"integer"},"type":"object"}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"} Any ideas? Thanks in advance RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-03-03 (2013-03-01, 22:40)Marx1 Wrote: Is it planned to merge it into stable, or it's only experiment? I think it would be beneficial for media managers authors, and users of those managers using foreign languages. Now media managers use mainly English websites, and authors need to write their owns scrapers, while scrapers already exists in xbmc ready for use.The work hasn't been done by me so I'm not really into it right now. (2013-03-02, 14:49)Anthirian Wrote: Apologies if this has already been explained, but I couldn't find it by searching.You need to tell the "filter" how to combine your rules, either with "and" or with "or". An example with "and" would look like this: Code: {"params": {"filter": { "and": [{"operator": "is", "field": "playcount", "value": "0"}, {"operator": "greaterthan", "field": "rating", "value": "2"}] }, "properties": ["rating", "playcount", "lastplayed", "file", "resume", "tvshowid"], "limits": {"end": 2}}, "jsonrpc": "2.0", "method": "VideoLibrary.GetEpisodes", "id": 1} |