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 - Lunatixz - 2014-01-20 Will this be a feature? allowing addon_data paths to query json, or do I have to rewrite my addon?? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-01-22 (2014-01-20, 19:36)Lunatixz Wrote: Will this be a feature? allowing addon_data paths to query json, or do I have to rewrite my addon?? See PR4065. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2014-01-22 Playing with AudioLibrary.SetSongDetails and it seems that modifying for example rating have not impact on currently playing media. And if the song is part of a playlist moving in the playlist does not either refresh the data. Old one is shown until a stop / start of the player. Is there a way from JSON to force a refresh so user does see the change he does to currently playing media ? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-01-22 (2014-01-22, 20:08)Tolriq Wrote: Playing with AudioLibrary.SetSongDetails and it seems that modifying for example rating have not impact on currently playing media. This was implemented once but had to be removed because there are addons that make hundreds of calls to the FooLibrary.SetBarDetails methods in quick succession which lead to refreshing the current screen after every such call which in the end made the GUI unusable while the script was running. Therefore this logic was removed again even though it has drawbacks as well, it's just that they are not as bad as XBMC becoming unusable. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2014-01-22 Would it be possible for post Gotham to have an added parameter to allow this behavior ? Or a new command in CGUIOperations ? I guess in the meantime I can cheat with IncreaseRating / DecreaseRating RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2014-01-27 Is there any possibility of the Textures.GetTextures method supporting limits so that rows can be retrieved in chunks, as supported by other methods? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Lunatixz - 2014-01-27 (2014-01-22, 19:39)Montellese Wrote:(2014-01-20, 19:36)Lunatixz Wrote: Will this be a feature? allowing addon_data paths to query json, or do I have to rewrite my addon?? I'm still having read issues from addon_data folders using latest night... Wasn't it merged? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-01-27 (2014-01-27, 09:21)MilhouseVH Wrote: Is there any possibility of the Textures.GetTextures method supporting limits so that rows can be retrieved in chunks, as supported by other methods?Might be added in the future. (2014-01-27, 20:53)Lunatixz Wrote:(2014-01-22, 19:39)Montellese Wrote:(2014-01-20, 19:36)Lunatixz Wrote: Will this be a feature? allowing addon_data paths to query json, or do I have to rewrite my addon?? Please provide the specific request (with parameters) that you are having problems with. I only did some quick tests with Files.GetDirectory. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Lunatixz - 2014-01-27 (2014-01-27, 20:59)Montellese Wrote:(2014-01-27, 09:21)MilhouseVH Wrote: Is there any possibility of the Textures.GetTextures method supporting limits so that rows can be retrieved in chunks, as supported by other methods?Might be added in the future. Code: sendJSON command: {"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "D:\\XBMC_Gotham\\portable_data\\userdata\\addon_data\\script.pseudotv.live\\cache\\generated\\movies_Action.xsp", "media": "video", "properties":["season","episode","playcount","duration","runtime","tagline","showtitle","album","artist","plot","plotoutline"]}, "id": 1} RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-01-27 It only works with "special://profile/addon_data/some/path". Using the real path doesn't work and wouldn't be cross-platform safe anyway. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Lunatixz - 2014-01-27 I'm not the above... is a print from my log. The actual path is translated by the plugin to be multiplatform safe. Im using xbmc.translate /path special profile /addon_data/ plugin directory / file RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2014-01-28 It's working for me (latest OpenELEC/XBMC master build from git about 30 minutes ago): Code: # ./texturecache.py directory special://profile/addon_data I'm also able to drill down into those directories too. Is there any reason why attempting to download files in these directories fails with httplib.UNAUTHORIZED? I'm assuming it's a security restriction, as I can download the content of files in my sources (nfo's etc.) RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Lunatixz - 2014-01-28 (2014-01-28, 00:48)MilhouseVH Wrote: It's working for me (latest OpenELEC/XBMC master build from git about 30 minutes ago): weird, I'll make sure paths are correct. Did any of the properties i'm using change/ RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2014-01-28 (2014-01-28, 01:02)Lunatixz Wrote: Did any of the properties i'm using change/ You're specifying "media": "video", when it should be "media": "files". Unless you've got video files stored in your addons settings folders, of course... RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Lunatixz - 2014-01-28 This is my code, is there a break down in xbmc translation were the paths are no longer valid? Looks correct to me... Code: SETTINGS_LOC = 'special://profile/addon_data/' + ADDON_ID |