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 - yallah - 2012-11-28 (2012-11-28, 00:19)Martijn Wrote:(2012-11-27, 22:55)yallah Wrote: Hi, Thx good idea, now need find command to know dbid (is it inside VideoLibrary.GetMovieDetails methods or VideoLibrary.GetMovies ?) can you give me command ? Re: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Martijn - 2012-11-28 Both. iirc its called 'movieid' It's the unique I'd number in xbmc for that movie RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - yallah - 2012-11-28 ok thx RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - emveepee - 2012-11-28 Trying to play a file wit a resume time am I forgetting something in the call or are these messages normal as the enum is evaluated: Code: 19:47:43 T:8780 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "params": {"item": {"movieid": 1}, "options": {"resume": {"hours": 0, "seconds": 47, "minutes": 1, "milliseconds": 0}}}, "method": "Player.Open", "id": 1} Martin RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2012-11-28 (2012-11-28, 00:09)Montellese Wrote:Thanks Montellese, you dont make any wrong, i understand at the first time, i just looked in the wrong place, i was searching for "videolibrary.set" in the JSON-RPC API V4, since i am not using the new frodo yet. I will test to see if works at least with Frodo alpha 3.(2012-11-27, 23:04)claymic Wrote: Thanks Montellese, i tried to find the VideoLibrary.SetFooDetails in Wiki, but don found. Maybe i am missing something. Do you saw the videos i sent to you ? Let me know your impression, tomorrow i will update the video with all changes. Thanks for all help. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - emveepee - 2012-11-28 When I delete a file from a library using JSON on the movieid or tvshowid, the recently added icons don't get removed until I exit and restart xbmc. Is there something I need to do to refresh the main screen? They aren't in the recently added text list boxes just as icons. Martin RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - emveepee - 2012-11-28 How do I markup a directory that contains a comma for a scan ie. Code: 00:56:54 T:2436 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "params": {"directory": "K:\\Emily Owens, M.D\\"}, "method": "VideoLibrary.Scan", "id": 1} Sorry for all the questions but I am new to JSON & python Martin RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-11-28 (2012-11-28, 03:20)emveepee Wrote: Trying to play a file wit a resume time am I forgetting something in the call or are these messages normal as the enum is evaluated:Does it work or not? Those debug messages are a bit of a pain. They are very useful when the user actually sends an invalid request but they are confusing if the user sends a valid request. Unfortunately I don't know at the beginning if the request is valid or not so I log them all the time (but only when debug logging is enabled). (2012-11-28, 06:57)emveepee Wrote: When I delete a file from a library using JSON on the movieid or tvshowid, the recently added icons don't get removed until I exit and restart xbmc. Is there something I need to do to refresh the main screen? They aren't in the recently added text list boxes just as icons.I'll take a look into it. Probably something missing in the recently added code of the home page. (2012-11-28, 08:03)emveepee Wrote: How do I markup a directory that contains a comma for a scan ie.Does the same path work within XBMC? AFAIK a comma is a valid character in a path so XBMC shouldn't choke on it. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-11-28 (2012-11-28, 06:57)emveepee Wrote: When I delete a file from a library using JSON on the movieid or tvshowid, the recently added icons don't get removed until I exit and restart xbmc. Is there something I need to do to refresh the main screen? They aren't in the recently added text list boxes just as icons. Should be fixed once PR1852 has been merged. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - yallah - 2012-11-28 (2012-11-28, 00:19)Martijn Wrote:(2012-11-27, 22:55)yallah Wrote: Hi, Same prob;/ Use {"jsonrpc": "2.0", "method": "Player.Open", "params": {"item": {"movieid": 237 }}, "id": 1} (ISO STARWARS) no working {"jsonrpc": "2.0", "method": "Player.Open", "params": {"item": {"movieid": 231 }}, "id": 1} (MKV SHREK) working Tell me if prob come from outside Json-RPC. But When I start from GUI it's working :/ http://pastebin.com/JaPyHKAA RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - emveepee - 2012-11-28 (2012-11-28, 09:22)Montellese Wrote: Does it work or not? Those debug messages are a bit of a pain. They are very useful when the user actually sends an invalid request but they are confusing if the user sends a valid request. Unfortunately I don't know at the beginning if the request is valid or not so I log them all the time (but only when debug logging is enabled). Yes it works fine positioning by time, I just was wondering if I was doing something wrong. Quote:Does the same path work within XBMC? AFAIK a comma is a valid character in a path so XBMC shouldn't choke on it. On a full scan yes, 12:23:31 T:2656 DEBUG: VideoInfoScanner: Found matching Full NFO file: K:\Emily Owens, M.D\tvshow.nfo Thanks, Martin RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - emveepee - 2012-11-30 (2012-11-28, 10:50)Montellese Wrote:(2012-11-28, 06:57)emveepee Wrote: When I delete a file from a library using JSON on the movieid or tvshowid, the recently added icons don't get removed until I exit and restart xbmc. Is there something I need to do to refresh the main screen? They aren't in the recently added text list boxes just as icons. Thanks it is working now. Martin RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-12-01 Any reason why Addons.GetAddons does not support array for the Type filter ? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-12-01 (2012-12-01, 15:10)Tolriq Wrote: Any reason why Addons.GetAddons does not support array for the Type filter ? Yeah, the addons code in xbmc doesn't offer a method to do that Any reason why you can't send two requests in a batch request and merge the two result lists? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-12-01 Well the question was more about the way to read the introspect Code: { "name": "type", "$ref": "Addon.Types" }, Looks quite the same and both type definition are the same. So when I tried I did suppose that the type field did accept an array too but in fact no :p Not really a problem by itself. And for your second question since I get 7 addons type it's faster to get them all and filter on the phone since I suppose no user will have 500 or more addons in one Xbmc instance. |