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 - Mizaki - 2013-12-14 Hey, Just checking compatibility with Gotham. I think I read about this but can't find it now. Am I right in saying access is only allowed to directories defined as sources? The reason is I use the code below to list the language files etc. Code: {"jsonrpc": "2.0", "method": "Files.GetDirectory", "params" : { "directory" : "C:\\Users\\username\\AppData\\Roaming\\XBMC\\addons\\webinterface.awxi/lang", "media" : "files", "properties": [ "file" ], "sort": { "order": "ascending", "method": "file" } }, "id": 1} A bit screwed without this access. Ta. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Mizaki - 2013-12-22 Is this a no go at all? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Millencolin007 - 2013-12-22 Try this path... Code: special://home/addons/webinterface.awxi/lang/ I think this should work RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2013-12-22 (2013-12-22, 14:44)Millencolin007 Wrote: Try this path... Sounds like a much better approach to me because the example you provided only works on windows anyway and won't work on any other operating system. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Mizaki - 2013-12-22 I use Code: { "method": "Addons.GetAddonDetails", "id": 0, "jsonrpc": "2.0", "params": { "addonid": "webinterface.awxi", "properties": ["path"] } } first to get the addon path in case someone has renamed it or done anything silly etc. Sadly still the same; debug log: Code: CUtil::GetMatchingSource: no matching source found for [special://home/addons/webinterface.awxi/lang/] I could hardcode it but dynamic loading makes more sense if possible RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Millencolin007 - 2013-12-22 Yes, you are right it doesn't work anymore. I was testing against 12.3 but thought it was a nightly build Take a look at the function RemoteAccessAllowed https://github.com/xbmc/xbmc/blob/master/xbmc/utils/FileUtils.cpp RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Regss - 2014-01-04 I'm doing this way: Code: 102. jsonGetMovieDetails = '{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovieDetails", "params": {"properties": ["title", "plot", "rating", "year", "thumbnail", "fanart", "runtime", "genre", "director", "originaltitle", "country", "trailer", "playcount", "lastplayed", "dateadded", "streamdetails"], "movieid": ' + id + '}, "id": "1"}' and get error (stars at line 154): xbmc.log Should I use json.dumps? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-01-04 There are quite a few threads about this topic. JSON-RPC returns UTF-8 paths but your decoding of the string is wrong. I don't remember the solution (because I don't really know python) but I'm sure you'll be able to find the solution when searching with the error in the log. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - helloworld1 - 2014-01-08 trash RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2014-01-08 This folder is no more accessible from JSON. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Rizzo - 2014-01-16 (2011-06-08, 16:40)Montellese Wrote: As an FYI the "tvshowid" parameter in VideoLibrary.GetEpisodes just became optional with the latest commit. Now you can retrieve all episodes in your library if needed. But beware if you want to use the "season" parameter, you need to define the "tvshowid" parameter as well. Will this also be implemented for VideoLibrary.GetSeasons? So that you can get a list of all the seasons. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-01-16 (2014-01-16, 12:43)Rizzo Wrote:(2011-06-08, 16:40)Montellese Wrote: As an FYI the "tvshowid" parameter in VideoLibrary.GetEpisodes just became optional with the latest commit. Now you can retrieve all episodes in your library if needed. But beware if you want to use the "season" parameter, you need to define the "tvshowid" parameter as well. Not for Gotham as the current code in the videodatabase for seasons is very limited and only works for seasons of a specific tvshow. But in a branch I'm currently working on (nothing to do with JSON-RPC though) I have actually refactored that code to be able to retrieve all seasons independent of the tvshow. So it's a possibility for a future release. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Lunatixz - 2014-01-17 (2013-11-21, 08:53)Montellese Wrote:(2013-11-20, 14:36)mikebzh44 Wrote: Hi. Has this issue been resolved? where can I find the Gotham security exceptions list? I'm currently unable to request json response from a playlist located in userdata\addon_data. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-01-17 (2014-01-17, 01:01)Lunatixz Wrote: Has this issue been resolved? where can I find the Gotham security exceptions list? I'm currently unable to request json response from a playlist located in userdata\addon_data. Right now you can access any of the following paths (or it's sub-directories):
If there's any missing, please let me know which ones and provide an argument/use case why it's necessary. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Lunatixz - 2014-01-17 Thanks! I think userdata/addon_data needs to be added. In my case, I have a plugin that generates xsp stored in addon_data, and then want to run a query on them. addon_data folder is there for various plugin files, doesn't make sense to include addon folder without its data folder. |