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 - Montellese - 2012-11-27 Marking a video as watched or unwatched is possible through the VideoLibrary.SetFooDetails methods by setting "playcount" either to 0 or > 0. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2012-11-27 Thanks again Montellese. There is a way to simulate keyboard actions using JSON ? Maybe will be better if i make a script to manage this, so, can i run a script with JSON ? Thanks for all your help Clayton RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-11-27 @Montellese : what is the field uniqueid in your last commit ? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-11-27 It's a generalization of "imdbid". It's a map which can have multiple key-value pairs specified scraper-specific identifications like "imdbid" or "tvdbid" etc. It was added a while ago for episodes (but will probably be expanded to other media types in the future). RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-11-27 Thanks, will have to look a little more how the data is returned object is kinda vague RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-11-27 Yeah it's like a string-string-map i.e. Code: "uniqueid": { RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-11-27 Ho cool Powerful and easy, I suppose as all others 1-n it does slow the query ? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-11-27 No it's stored as a JSON object in the database. Currently you will only get "unknown" as a key in "uniqueid" because scrapers don't support providing the key of the identifier yet. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - yallah - 2012-11-27 Hi, Don't why bluray iso can't open via json-rpc (working if I execute ISO from GUI)... {"jsonrpc": "2.0", "method": "Player.Open", "params": {"item": {"file":"Z:\\Star Wars Episode III - Revenge of the Sith (2005)\\Star Wars Episode III - Revenge of the Sith (2005).iso"}}, "id": 1} http://pastebin.com/GBAtARU8 thx for your help RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2012-11-27 (2012-11-27, 13:25)Montellese Wrote: Marking a video as watched or unwatched is possible through the VideoLibrary.SetFooDetails methods by setting "playcount" either to 0 or > 0.Thanks Montellese, i tried to find the VideoLibrary.SetFooDetails in Wiki, but don found. Maybe i am missing something. Can you tell me where i can read about VideoLibrary.SetFooDetails ? Thanks again Clayton RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-11-27 Foo is a standard dev acronym http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v5#VideoLibrary.SetMovieDetails for example RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2012-11-27 Thanks Tolriq, i was loking in the V4, this will work for Eden and Frodo Alpha 3 too ? Very thanks for all your help Clayton Re: RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Martijn - 2012-11-27 (2012-11-27, 23:16)claymic Wrote: Thanks Tolriq, i was loking in the V4, this will work for Eden and Frodo Alpha 3 too ? No. Only on much later versions RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-11-28 (2012-11-27, 22:55)yallah Wrote: Hi,Not sure, might be that the GUI code performs some additional actions before playing an ISO. I don't have any so can't really test. I'll look into the code and see if there's an explanation. (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. You'll have to replace "Foo" with "Movie" or "Episode" or "MusicVideo" i.e. VideoLibrary.SetMovieDetails etc I was just too lazy to type it all out. Re: RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Martijn - 2012-11-28 (2012-11-27, 22:55)yallah Wrote: Hi, If this is a movie scraped to your library and you know the dbid you could also use Player.Open through JSONRPC |