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
|
- Martijn - 2012-01-13 Montellese Wrote:The problem with your approach is, as Mizaki pointed out correctly, that some ppl don't have seperate directories for seasons and other people have the epidose files of the same season in different directories (maybe even on different harddiscs) so you need to take that into account. I can't take every possibility into account and this seems to be the most logical way that would fit the majority of users. If they don't have separate folders for seasons it also doesn't work in skins that will be using this. The other problem you pointed out that if they aren't in the same folder would make it very difficult to program and slow. This was an extra option so they will just have to disable it. I already have it so that the season posters are save like XBMC exports them. "seasonxx.tbn" I still need to figure out a good way to push the newly downloaded directly into the XBMC database so the new ones are used instead of the previously scraped ones. - dwagner - 2012-01-17 Hi Montellese, I've been fiddling with the recentlyadded functions for movies and musicalbums. I noted that if I set the limit above 25 that I will still only get 25 items back. Is there a reason for the limitation? - dwagner - 2012-01-17 Is there a way in the JSON API to list all movies by movieid in descending order? - Montellese - 2012-01-17 dwagner Wrote:Hi Montellese, That's the limitation defined by XBMC's implementation of the video database. The "limits" parameter can't do any special magic there. dwagner Wrote:Is there a way in the JSON API to list all movies by movieid in descending order? Yes just don't define any sort method at all or specify the sort method to "none". Then it will simply return the movies in the order they were added to the database which will automatically lead to it being sorted by movieid. - dwagner - 2012-01-17 Montellese Wrote:Yes just don't define any sort method at all or specify the sort method to "none". Then it will simply return the movies in the order they were added to the database which will automatically lead to it being sorted by movieid.trying to sort this in descending order does not work for me. It still shows in ascending order. "sort":{"method":"none", "order":"descending"} - Montellese - 2012-01-17 dwagner Wrote:trying to sort this in descending order does not work for me. It still shows in ascending order. Yes because "none" means it doesn't do any sorting so it will ignore the "order" as well. It just happens to be the case that not sorting means that it will be sorted by the database id in ascending order. - blademansw - 2012-01-17 Hi All I am working on a .Net async library for the new API (http://code.google.com/p/xbmc-json-v3/) which is based on a previous project for Dharma. I am getting a problem with AudioLibrary.GetArtistDetails. Here is my Json request Code: { This returns the following: Code: { Can anyone see anything wrong with my request - I have validated that the artistid is a valid ID by looking directly in the database. Cheers - Montellese - 2012-01-18 Did you also make sure that the artist with that artistid is returned by AudioLibrary.GetArtists? Because it only lists those artists that actually have an album/track connected to them because otherwise it doesn't make any sense to list them. So seeing it in the database doesn't necessarily mean that it will show up in XBMC GUI or in the output of JSON-RPC. If there would be a problem with one of the other parameters you provide in your request you would get a more detailed error description. - blademansw - 2012-01-18 Montellese Wrote:Did you also make sure that the artist with that artistid is returned by AudioLibrary.GetArtists? Because it only lists those artists that actually have an album/track connected to them because otherwise it doesn't make any sense to list them. So seeing it in the database doesn't necessarily mean that it will show up in XBMC GUI or in the output of JSON-RPC. Hi Montellese. Thanks for your reply. I have just this minute found the problem, it was because I had neglected to manually scrape the artists in XBMC, so the database had minimal info about the artist and I guess this caused the exception within XBMC when I tried to call GetArtistDetails Nothing wrong with the API at all! Thanks - dwagner - 2012-01-18 Hi Montellese, Much like movies, I wanted to get TV Shows by tvshowid, but it seems the behavior of VideoLibrary.GetTVShows is different from that of movies, in that if no sort is specified the library still gets ordered by label. Is there a way to get it by tvshow id? - Montellese - 2012-01-19 No there isn't, you'll have to do the sorting yourself. - dwagner - 2012-01-19 Montellese Wrote:No there isn't, you'll have to do the sorting yourself.Sadly that won't work for what I'm trying to do as I'm trying to avoid having to download the entire list, and only get the newest ids. I'll add add sort by id as a feature request. - __teoREtik__ - 2012-01-19 Hello, everyone. Tell me please, is it possible to get info about movie actors via JSON API like it does in HTTP API queryvideodatabase() method by passing there SQL construction? I'm working with XBMC Dharma. - dwagner - 2012-01-19 __teoREtik__ Wrote:Hello, everyone. Tell me please, is it possible to get info about movie actors via JSON API like it does in HTTP API queryvideodatabase() method by passing there SQL construction? I'm working with XBMC Dharma. Its not yet possible to just list actors and then query movies by actor. I have a feature request for this http://trac.xbmc.org/ticket/12148 You can however list movies with actor information by using "cast" for properties. - __teoREtik__ - 2012-01-20 dwagner Wrote:Its not yet possible to just list actors and then query movies by actor. I have a feature request for this Do you mean that I can add to "fields" object in VideoLibrary.GetMovies request "cast" property to get all movies with this actors from DB? |