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 - dingerjunkie - 2014-02-16 Hello All...noob to the topic of discussion. Tried a thread search and wasn't coming up with anything conclusive. Hoping to get a quick link posting or clarification. Been experimenting via PUTTY to test commands. Attempting to directly access Movie listings or Television listings (rather than the "videos" directory). XBMC Wiki's page on window ID's gives a hint, stating to use something like the following... ActivateWindow(Videos,MovieTitles) I've tried structuring my command in the following variants, with no luck... jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"videos","movietitles"},"id":"1"}} jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"videos,movietitles"},"id":"1"}} jsonrpc?request={"jsonrpc":"2.0","method":"GUI.ActivateWindow","params":{"window":"videos","movies"},"id":"1"}} ...all fail with an "invalid params" message, because the second passed value doesn't match any defined enum value. "videos" alone works fine...what am I doing wrong or missing? Thanks for any thread leads or answers that can be provided. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-02-16 (2014-02-16, 21:52)dingerjunkie Wrote: Hello All...noob to the topic of discussion. Tried a thread search and wasn't coming up with anything conclusive. Hoping to get a quick link posting or clarification.Please don't cross-post. It will lead to people ignoring you instead of giving you an answer. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2014-02-16 (2014-02-16, 17:13)Montellese Wrote:(2014-02-13, 14:58)jez500 Wrote: 1. Closing osd dialogs - now and again I may trigger something with the api that causes a dialog to open on screen, most common is "Failed playback" due to a library entry with a path to a invalid file, but also input dialogs (eg. search). When these are open, I seems to prevent any other api calls getting through and I need to go over to the host running xbmc and physically click the close button. So my question basically is, does anyone know of ways to avoid this? eg. allow the api to still do calls while a dialog is open, with search boxes I can send text with Input.SendText and it closes them but, error dialogs seem to kill at least, most commands.That's a known issue. Ideally most JSON-RPC actions would not trigger any GUI dialogs at all. Furthermore JSON-RPC should still be usable while dialogs are open but at least all Player methods don't work anymore. Have you tried using Input.ExecuteAction with the "back" action? This is the same as : http://forum.xbmc.org/showthread.php?tid=68263&pid=1624198#pid1624198 JSON Rpc on some dialogs does no more answer, and in rare case like pin code EventServer does not answer too. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2014-02-17 Hi there, How can i set a TvShow like watched or unwatched ? {"jsonrpc":"2.0","method":"VideoLibrary.SetTVShowDetails","params":{"tvshowid":id,"playcount":value},"id":1}[/code] Seems that if i use the code above with value = 0 or value = number of episodes , nothing happens. I have to set each episode playcount ? Thanks in advance. Clayton[/quote] RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2014-02-17 This is currently not supported as for seasons You need to update each episodes RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2014-02-17 Oh, thank you Tolriq, i will do that. Seems a lot of job for a app side when the TvShow has hundreds of episodes, maybe i will just insert this on a add-on. Thank again. Clayton RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2014-02-17 Hi, tried to set all all episodes from a TvShow like watched, 11 episodes. Work´s fine, i set one by one, but after set all the episodes i did another request using "VideoLibrary.GetTVShowDetails" just to be sure that everything was fine, for my surprise the GetTVShowDetails return the field watchedepisodes like 0, i tested this many times. I am doing something wrong ? i will really have to use VideoLibrary.GetTVShows to get the new playcount state of my TvShow ? Thanks Regards Clayton RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2014-02-18 Hi, what operators can i use with the field "playcount" on a Filter ? Thanks Clayton RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-02-18 (2014-02-18, 11:26)claymic Wrote: Hi, what operators can i use with the field "playcount" on a Filter ? IIRC "is", "isnot", "greaterthan", "lessthan". Not sure about "between". RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2014-02-19 (2014-02-18, 13:40)Montellese Wrote:Thanks Montelesse, on my code is only working for "is", i am doing something wrong, i will check it.(2014-02-18, 11:26)claymic Wrote: Hi, what operators can i use with the field "playcount" on a Filter ? Can you tell me what operators i can use for "videoresolution" ? What exactly i have to search on this field ? I am trying to filter some resolution using "contains", to check if the video contain or not a width like 1920, 1280, so on... Thanks in advance Best regards Clayton RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-02-19 TBH I don't know about all the available fields either. JSON-RPC simply exposes all that are there. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2014-02-19 (2014-02-19, 14:18)Montellese Wrote: TBH I don't know about all the available fields either. JSON-RPC simply exposes all that are there.I tried to found some info about this and can´t found it, Is there a place where i can read about it ? I tried to use videoresolution contain 1920, don´t work, return all movies, "startswith" don´t work too, return all movies again. Thanks for your help. Clayton RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2014-02-19 Seem that i was walking on the wrong path The "videoresolution" is not the resolution of the video(1920x1040, 1920x1080,1280x540) of the movie, it´s 1080,720,480,so on... So i just need to use the operator "is". Regards Clayton RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Milhouse - 2014-02-24 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? Otherwise VideoLibrary.Clean (and presumably AudioLibrary.Clean) are now a whole lot less useful (ie. almost unusable) from a JSON perspective if they require user intervention. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2014-02-24 (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? 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. AudioLibrary.Clean is not affected as I've only adjusted the videolibrary cleaning to handle whole sources being offline. |