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 - tim2005 - 2012-08-06 I enabled Debug logging, and found the following in the xmb.log file. Quote:18:36:36 T:1284478048 DEBUG: JSONRPC Server: New connection detectedLooks like XBMC and .NET do implement RFC6455 in a different way. Maybe it is because in the working connection the upgrade is "websocket" and in the non-working it is "Websocket", capital use issue? Edit/Update: I continued my research and made a small .NET program wich does not use the WebSocket class but the TcpClient class. I copied the working HTTP request to the testapplication and let it send. I succesfully received a 'Switching protocols' response. Then I changed the HTTP request a bit, "Upgrade: websocket" became "Upgrade: Websocket" (capital W). Suddenly it does not work Tried the same with the original request from .NET, modiefied it to not use a capital and then it works fine. Looks a capital issue to me. Protocol says it should be case-insensitive, see Page 18 subject 2. http://tools.ietf.org/html/rfc6455#page-18 Edit/Update 2: I made a bug report for this issue in TRAC: http://trac.xbmc.org/ticket/13231 RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-08-06 (2012-08-06, 18:39)tim2005 Wrote: I enabled Debug logging, and found the following in the xmb.log file. Thanks for tracking this down. I already suspected that it would come down to a case-sensitivity problem. I've pushed a fix. Please let me know whether it solves the problem or not. I have to admit I'm too lazy to write a program to send a websocket header and all the existing ones in firefox, chrome do/did not have this problem. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - tim2005 - 2012-08-07 (2012-08-06, 22:01)Montellese Wrote:(2012-08-06, 18:39)tim2005 Wrote: I enabled Debug logging, and found the following in the xmb.log file. Thank you for the very fast fix, 92 minutes after submit. I am downloading the most recent night windows build containing this fix. Had to wait for it, will report back soon. Update: The connection succeeds now Great job! Keep up the good work. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - N3MIS15 - 2012-08-07 Using the latest windows build (20120806) VideoLibrary.GetMovieDetails returns "set": "\u0000" for every movie. I removed the nfo files and rescraped the movies on my test setup just in case it was a conflict with old nfo files but its still happening (even for movies without sets). Am i missing something? Or is this a bug? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-08-07 (2012-08-07, 11:40)N3MIS15 Wrote: Using the latest windows build (20120806) VideoLibrary.GetMovieDetails returns "set": "\u0000" for every movie. Thanks for the report. Stupid copy & paste errors. Fixed in https://github.com/xbmc/xbmc/commit/bf51552620d6df6d21b79ad65e5f8bb99245715f RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Mizaki - 2012-08-08 I think something is borken here: Code: {"jsonrpc":"2.0","id":2,"method":"Player.GetProperties","params":{ "playerid":0,"properties":["time", "totaltime"] } } Code: {"id":2,"jsonrpc":"2.0","result": {"hours":0,"milliseconds":315,"minutes":3,"seconds":19},"totaltime":{"hours":141,"milliseconds":0,"minutes":48,"seconds":31}}} RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-08-08 This has been reported before. AFAIK it got broken with the AE merge because gnif has re-written the whole music player (PAPlayer) and like the missing/double notifications from the music player this seems to be broken as well. But I didn't have the time yet to look into it and I got no clue about the player implementation so might take a while to solve this. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Mizaki - 2012-08-08 Okay. I've only just noticed it or I forgot about it. Would be good if we could get the AE demons out RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Mizaki - 2012-08-08 I can't see a ticket for this one. But first... VideoLibrary.GetGenres doesn't appear to honour sort. Example: Code: {"jsonrpc": "2.0", "method": "VideoLibrary.GetGenres", "params": { "type": "movie" }, "sort": { "method": "label" }, "id": 1} Returns in genreid order. Unless I'm being stupid as is always possible RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - dwagner - 2012-08-09 (2012-08-06, 13:37)Montellese Wrote: THESE CHANGES BREAK BACKWARDS COMPATIBILITY WITH VERSION 4 OF JSON-RPC API!!!I grew to like the old "/" separated arrays I wish you would have made a parameter option to query using the old delimited array or rather the other way around so as not to completely break backward compatibility. I cache this data to a file in my remotes, so adding a loop for multiple parameters in each movie is more costly (thankfully this is only done once). RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Martijn - 2012-08-09 (2012-08-09, 00:55)dwagner Wrote:(2012-08-06, 13:37)Montellese Wrote: THESE CHANGES BREAK BACKWARDS COMPATIBILITY WITH VERSION 4 OF JSON-RPC API!!!I grew to like the old "/" separated arrays I wish you would have made a parameter option to query using the old delimited array or rather the other way around so as not to completely break backward compatibility. I cache this data to a file in my remotes, so adding a loop for multiple parameters in each movie is more costly (thankfully this is only done once). Keeping both is just a no-go code wise. Just to messy. Beside some more things will probably break in coming months RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - N3MIS15 - 2012-08-09 is there any way to set thumbnail/fanart for movie sets and seasons over json api? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - dwagner - 2012-08-09 I'm getting a crash every time I try run JSONRPC.Introspect (latest build: xbmc-20120808-0531bbf-master-x86_64) Code: {"method":"JSONRPC.Introspect","id":1,"jsonrpc":"2.0"} I wanted to file this in trac, but it seems I've somehow forgotten my username and password and for the life of me I can't find an option to reset it. Not to mention that clicking Help/Guide goes to a page not found. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - dwagner - 2012-08-09 I have a question regarding the new image URL's provided by JSON API 5. Are these URL's temporary. In other words, if I query a movie save the URL, and only try retrieve the image via the image:// URL a few days and many other queries later, will it still work. In my remote I cache all these URL's and retrieve the images only when needed. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - N3MIS15 - 2012-08-09 The introspect shows year, originaltitle and imdbnumber as valid properties for VideoLibrary.SetTVShowDetails but none of them seem to work. Are they even sure they're supposed to be in there? Maybe 'tvdbnumber' could be used for tv shows? Or both? |