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 - 2014-04-14 (2014-04-14, 13:42)claymic Wrote: Thanks Montellese, sorry, i was so tired when i wrote this question that i don´t read everything on the commit, now i know how it works, very cool. Nope that's not possible yet. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - soundgals - 2014-04-25 I am completely new to JSON-RPC. What I want to achieve is to issue the following command form outside XBMC: Dialog.Close(dialog[,force]) -- Close a dialog. Set force to true to bypass animations. Use (all,true) to close all opened dialogs at once.-- I want to close all open dialogs (actually there will only be one open; but I don't know how to get its name/reference) Is this possible with JSON-RPC? If not, is there another or better way to do it? Thanks, geoff RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-04-25 (2014-04-25, 11:03)soundgals Wrote: I am completely new to JSON-RPC. What I want to achieve is to issue the following command form outside XBMC: Don't post the same question in different threads. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Lunatixz - 2014-05-01 is "duration" a deprecated parameter? If not what is the difference between "duration" and "runtime" Thanks RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-05-01 (2014-05-01, 22:48)Lunatixz Wrote: is "duration" a deprecated parameter? "duration" is for songs and "runtime" is for videos. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2014-05-02 (2014-04-14, 14:13)Montellese Wrote: Nope that's not possible yet. Thanks Montellese I am doing a new add-on and i get a problem with the request bellow : Code: def getAddonsPath(path,id): The add -on that i want to get the data is a video add-on. Am i doing something wrong ? or what i want is just not possible ? Thanks in advance RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-05-03 (2014-05-02, 18:28)claymic Wrote:(2014-04-14, 14:13)Montellese Wrote: Nope that's not possible yet. Please provide a Debug log (wiki) with JSON-RPC logging enabled (in Settings -> System -> Debugging -> Verbose logging). RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2014-05-03 (2014-02-24, 08:57)Montellese Wrote:(2014-02-24, 07:40)MilhouseVH Wrote: If a VideoLibrary.Clean is initiated using JSON, the GUI in recent Gotham nightlies now prompts to keep or remove missing items. Obviously this is undesirable when the clean has been initiated remotely via JSON and there is no user present to click the GUI button... is there any way to suppress the GUI prompts and always assume "remove" or "keep"? Maybe pass remove/keep/ask as a parameter on the JSON *.Clean request, with the default value being "remove" so as to remain consistent with the old pre-Gotham behaviour? Just a gentle reminder as it looks like this functionality didn't make it into Gotham. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Talguy - 2014-05-06 @Montellese, I have a feature request. If this pull request to be able to quickly navigate the Channels list and the EPG timeline view by typing in a specific channel number gets accepted into the main development tree can we add functions into the JSON API to take advantage of navigating these windows by passing the desired Channel number to XBMC? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - thezoggy - 2014-05-06 is it possible to get/set watch status of an tv episode? for example if the user is replacing a existing file with something better.. i'd like to fetch the current watched status... hold onto it while we replace the previous file..then set the watch status accordingly (and remove the previous file reference... clean library? or just update old file to new one and keep associated data?) RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-05-07 (2014-05-03, 23:58)MilhouseVH Wrote:Yeah I've looked into it before Gotham but it was not that easy to fix due to the nature of the video library cleaning implementation so I had to postpone it to after Gotham.(2014-02-24, 08:57)Montellese Wrote: Thanks for the report. I'll see what I can get into Gotham. Most likely we will have to hard-code it to do a "keep" action as that's what makes most sense. Yes it differs from the previous behaviour but the previous behaviour was crazy. It's not acceptable to remove all items from a source just because the NAS is offline. (2014-05-06, 21:37)Talguy Wrote: @Montellese, I have a feature request. If this pull request to be able to quickly navigate the Channels list and the EPG timeline view by typing in a specific channel number gets accepted into the main development tree can we add functions into the JSON API to take advantage of navigating these windows by passing the desired Channel number to XBMC?I don't have a (working) PVR setup so I'm not really the man for PVR-specific features, sorry. (2014-05-06, 22:43)thezoggy Wrote: is it possible to get/set watch status of an tv episode? for example if the user is replacing a existing file with something better.. i'd like to fetch the current watched status... hold onto it while we replace the previous file..then set the watch status accordingly (and remove the previous file reference... clean library? or just update old file to new one and keep associated data?)You can use VideoLibrary.RemoveEpisode and VideoLibrary.SetEpisodeDetails but what you currently can't do is add a new episode. You also can't change the file reference of an episode. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - jez500 - 2014-05-18 Just wondering if anyone has had problems with sorting by date with VideoLibrary.GetMovies? I would have thought that date would reflect when the media was added to the library so if I did something like this: Code: {"jsonrpc":"2.0","method":"VideoLibrary.GetMovies","params":{"properties":["title","art"],"sort":{"order":"descending","method":"date"}},"id":"1"}} I would be getting a similar result to VideoLibrary.GetRecentlyAddedMovies. Instead it seems to give me back reverse alphabetical order. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2014-05-18 Need 'dateadded'. But sometimes the values get messed up specially for TvShows. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - jez500 - 2014-05-18 Perfect, Thanks Tolriq! Works a treat. Yeah I guess with TV it is listing when the show was added rather than the most recent episodes although even that looks a bit out of whack. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Lunatixz - 2014-05-19 did GetDirectory change recently? I'm unable to return xbmc library info from json... Code: {"jsonrpc":"2.0","method":"Files.GetDirectory","params":{"directory":"smb://0.0.0.0/TV Shows/White Collar/Season 3/","properties":["duration","runtime"]},"id":19} Should return duration, but doesn't... Worked in frodo and alpha builds of Gotham. Tested with regular media (non strm) and strms, same result. Database is mysql, btw... Thanks ahead of time... |