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 - 2012-12-06 (2012-12-05, 11:01)N3MIS15 Wrote:(2012-12-05, 10:39)Montellese Wrote: I have no clue what you are mentioning/talking about. Will need a better problem description. I just tried this with a few local files (which are not in the library) and "label" always has the file name in it. "thumbnail" can't be filled. That only works when you start the video from the GUI and you navigate into the directory where both the video file and the artwork is. Then xbmc automatically associates the local artwork with the file. Otherwise (e.g. through JSON-RPC) that doesn't happen. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-12-06 The step to reproduce the problem is well explained in the trac ticket : http://trac.xbmc.org/ticket/13344 For the artwork we are talking about auto generated thumbs, there's no artwork anywhere in the directory this should be returned. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-12-06 (2012-12-06, 21:01)Tolriq Wrote: The step to reproduce the problem is well explained in the trac ticket : http://trac.xbmc.org/ticket/13344If you've read the ticket you'll have noticed that this is at least the third time I tried to reproduce the problem and it always worked and still works fine for me. (2012-12-06, 21:01)Tolriq Wrote: For the artwork we are talking about auto generated thumbs, there's no artwork anywhere in the directory this should be returned.The same logic applies to autogenerated thumbs. They are generated while you browse through videos in the GUI not when you start playing it. As the browsing step falls away when you use JSON-RPC to start a video no thumb is generated. Or is there already an autogenerated thumb for the item you are trying to play? RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-12-06 I've read the ticket and even if you can't reproduce with those step I can each time I could have repost here the same reproduce pattern or just link And yes even for items who have the thumb generated this won't work. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2012-12-06 (2012-12-06, 20:33)Montellese Wrote:Thanks for test this for me Montellese(2012-12-06, 20:14)Montellese Wrote:(2012-12-04, 00:04)claymic Wrote: Ok, i maked some more tests and will try to explain in my bad english, i am sorry for that. I test again, this time in two HTPCs, my interface for ipad and the Constellation for Ipad, samething for all tests, the playcount take 7,10 and sometimes 20 seconds. I maked a clean instalation in both HTPCs and use only the skin Confluence. When in the window HOME sometimes i get a little lockup, the screen block until the playcount update. If i am in the window MOVIE, the screen lockup if i tried to access the Context Menu (keyboard c) after set the playcount to 0 or 1 with the app, Sometimes my app simple freeze wating the response from JSON. This happens in both pcs and both aplications for ipad. But if is working for your, i have to tried again, set the playcount directly from the ipad its very nice, i cant give up to get this to work Very thanks for all your help Clayton RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-12-06 Are you using mysql and maybe a slow computer? But still 10 seconds is very long even for a slow htpc connected over a slow network connection to a slow server running mysql. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - claymic - 2012-12-06 Nop, and here i control all the home (lights,audio, video,alarm system,...) over my network with no problem, its a nice network and maked to support hard trafic. One pc its a quad core and another is the Xtreamer Ultra 2 with a SSD, each one with 4gb of RAM. To get all my movies, with thumbs and fanarts, take less then 1 second (800 movies in the library), samething for tvshows (5k episodes), everything works fast and nice, i only have a problem with the playcount. Thanks for your help Montellese, i apreciate. Clayton RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Luca Brasi - 2012-12-07 Hey guys, it there any way to get notifications about window changes? I would like to trigger some actions in eventghost based on that... RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-12-07 (2012-12-07, 02:07)Luca Brasi Wrote: Hey guys, Nope, no notifications on any window changes right now. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - yallah - 2012-12-07 Hi, Still not working. Can't start movie iso via Json, Where do you think the problem come from, work perfectly with all other format? Thx for your help (2012-11-28, 14:46)yallah Wrote:(2012-11-28, 00:19)Martijn Wrote:(2012-11-27, 22:55)yallah Wrote: Hi, RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-12-07 Ok here's some more debug information about the empty labels. (Phone and Xbmc machine are near time synced) Step one : Start a movie file from JSON : Code: 2012-12-07 19:19:23.500 Verbose/JsonRpc: JsonRpc.doRequest@238: Request : {"id":1,"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"file":"smb:\/\/DISKSTATION\/Torrents\/Arrow.S01E08.FASTSUB.VOSTFR.720p.HDTV.x264-PROTEiGON.mkv"}}} All works ok (A part from thumbnail filling even if it has already been auto generated). Logs from Xbmc : http://xbmclogs.com/show.php?id=19018 Step 2 : Stop the media (after a few seconds) Code: 2012-12-07 19:19:46.782 Verbose/JsonRpc: JsonRpc.doRequest@238: Request : {"id":1,"jsonrpc":"2.0","method":"Player.Stop","params":{"playerid":1}} Logs from Xbmc : http://xbmclogs.com/show.php?id=19019 Step 3 : Start the media again with the same command Code: 2012-12-07 19:20:00.117 Verbose/JsonRpc: JsonRpc.doRequest@238: Request : {"id":1,"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"file":"smb:\/\/DISKSTATION\/Torrents\/Arrow.S01E08.FASTSUB.VOSTFR.720p.HDTV.x264-PROTEiGON.mkv"}}} Logs from Xbmc : http://xbmclogs.com/show.php?id=19021 The difference between the 2 logs : Permanent tries of Xbmc to do : Code: 19:20:00 T:6412 DEBUG: CVideoDatabase::GetMovieId (smb://DISKSTATION/Torrents/Arrow.S01E08.FASTSUB.VOSTFR.720p.HDTV.x264-PROTEiGON.mkv), query = select idMovie from movie where idFile=1996 On start movie then on each subsequent Player.GetProperties. So as Mizaki pointed out as soon files have some properties saved like resume point Json tries to find the file in one of the database then don't find it and forgot to set some fields. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-12-08 VideoLibrary.SetTVShowDetails is missing the year field And I can't get VideoLibrary.SetTVShowDetails work for playcount . (Either setting a positive value or 0) Xbmc returns OK on query but does not change anything on Xbmc side (neither the show, the seasons or the episodes). RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-12-08 (2012-12-07, 20:43)Tolriq Wrote: So as Mizaki pointed out as soon files have some properties saved like resume point Json tries to find the file in one of the database then don't find it and forgot to set some fields.The final clue to be able to reproduce the problem was to start playback through JSON-RPC's Player.Open and not through the GUI. "thumbnail" and "fanart" still don't work because XBMC stores the information about the currently playing file in different locations and there's no easy way to merge those into one set of properties. Will have to come up with a better way for Frodo+1. EDIT: Forgot to mention that the "label" issue is fixed in https://github.com/xbmc/xbmc/commit/c6c47ad991e5b788cdfbb7144b276ba631ffd409. You should also be able to get "streamdetails" and "resume". (2012-12-08, 16:13)Tolriq Wrote: VideoLibrary.SetTVShowDetails is missing the year fieldYup, you're right. (2012-12-08, 16:13)Tolriq Wrote: And I can't get VideoLibrary.SetTVShowDetails work for playcount . (Either setting a positive value or 0)Hm that should probably not be there in the first place as the logic to mark all seasons/episodes within a tvshow marked is not located in the database but in the GUI code when you use the context menue or the "markwatched" action. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Tolriq - 2012-12-08 Thanks for label. For shows this is a bad new since there's no SetSeasonDetails and I'm not sure that setting playcounts of all episodes from Json will update the season and show playcount Edit : Just tested on a small show and it did work should perhaps just remove the field from schema. RE: JSON-RPC (JSON Remote Procedure Call) interface protocol in development for XBMC - Montellese - 2012-12-09 I just checked and actually the "year" property for tvshows is extracted from the "premiered" property so not having it in SetTvShowDetails is correct. |