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
|
- noem - 2011-04-12 thx for the replay I got this from introspect: Code: "VideoPlaylist.Add" : { - Montellese - 2011-04-12 noem Wrote:thx for the replay I got this from introspect: Thx for the hint, I will have to fix that description. If you stumble upon any other odd descriptions please let us know. We didn't have the time yet to provide detailed descriptions for all of the methods, parameters and possible values but we hope that the now introspect layout (json schema) already helps a lot in determining how a method should/can be called. - noem - 2011-04-12 sure no problem Im building a project based on the new RPC api so I will indeed let you know. Announcement - noem - 2011-04-12 Is there any way of getting the complete list of xbmc Announcements that xbmc sends? - topfs2 - 2011-04-12 For eden we hope to have it in the introspect at some point but easiest for now is git grep CAnnouncementManager::Announce - noem - 2011-04-12 excellent thank you - marksoccer - 2011-04-13 Does anyone know anything about artist fanart? I alway get a valid looking value back for fanart, but sometimes, it points to a .tbn that doesn't exist. Even when I look in the GUI or the userdata folder, I can't find the tbn returned by the JSON method. I do, however, get a blank string when an artist thumbnail doesn't exist. Is there some way we can fix this? Even if it is a problem with the larger XBMC codebase, can we at least check if the file exists before sending the string via JSON so I don't have to query the server for an image that doesn't exist? - marksoccer - 2011-04-13 Montellese Wrote:Thanks again for the report. You were right about the "item" and I fixed it in https://github.com/xbmc/xbmc/commit/db9d7e5fd4b15fda5f7539e9f40def063fd7af05. Please report back whether it works for you as well (I tested it for artistid and albumid). Thanks It works great! - marksoccer - 2011-04-13 Also, what happened to the songid stuff? I thought I remember seeing songid as part of Playlist.Audio.Item, but I don't see it there now. How do I add a single song to the current playlist? I see AudioPlaylist.Play, but when I pass a songid, I get success:false - Montellese - 2011-04-13 marksoccer Wrote:Does anyone know anything about artist fanart? I alway get a valid looking value back for fanart, but sometimes, it points to a .tbn that doesn't exist. Even when I look in the GUI or the userdata folder, I can't find the tbn returned by the JSON method. I do, however, get a blank string when an artist thumbnail doesn't exist. Is there some way we can fix this? Even if it is a problem with the larger XBMC codebase, can we at least check if the file exists before sending the string via JSON so I don't have to query the server for an image that doesn't exist?There's already a bug ticket for this issue. It's not a given that any paths returned by JSON RPC actually exist but there's no way of determining that right now :: marksoccer Wrote:Also, what happened to the songid stuff? I thought I remember seeing songid as part of Playlist.Audio.Item, but I don't see it there now. How do I add a single song to the current playlist? I see AudioPlaylist.Play, but when I pass a songid, I get success:falseI'll have to look at that when I get home, can't remember if there was a reason why I removed it. - noem - 2011-04-13 strage... or not ? JSON: Code: {"method":"AudioLibrary.GetArtists","id":23,"jsonrpc":"2.0","params":{"fields":["style","instrument","mood","born","formed","genre","died","disbanded","yearsactive","fanart","thumbnail"]}}} response: Code: "artist" : "Ravel", introspect descr: PHP Code: { - Montellese - 2011-04-13 noem Wrote:Where is the thumbnail field ? Currently the "thumbnail" field has to be handled different than most other fields in the code and the way it is currently coded the "thumbnail" field is only returned if it is requested in the "fields" array AND if it has a value. So it seems that in your case there is no thumbnail for that artists and that's why the "thumbnail" portperty does not appear in the response. But for the sake of uniformity I might change it so that it is returned on request independent of whether it has a value or not. Another approach would be to drop all the requested fields which don't have a value set like in your example born, died, disbanded, formed and mood but I don't really like that. If a client requests a field it should be returned no matter what (so even if it is empty). - noem - 2011-04-13 Thx for the replay got something else now Code: {"method":"Files.GetSources","id":101,"jsonrpc":"2.0","params":{"media":"files"}} returns: Code: { now I won't too use Files.GetDirectory wich requires "directory:"\path\" but I dont get the path from GetSources .... - Montellese - 2011-04-13 That's a bug as it should return a "file" property for every share. Please create a bug ticket and CC me so I don't forget about it. I think a recent change caused this to break but should be pretty easy to solve. Please also create a bug ticket (with me on CC) for the "thumbnail" property not turning up all the time otherwise I might forget about that one as well. - noem - 2011-04-13 Just wondering are movie collections going to be supported by JSON in eden? |