Thank you, exactly what I as looking for. I just had no idea how it was called some my google-fu failed.
Anyway, I tried it but it seems XBMC does only process the first request from the batch although the docs say batch requests are support (if I understand it correctly):
http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v6
But it seems XBMC ignores all further request. Here is what I tried:
Code:
17:16:58 T:8392 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "VideoLibrary.SetEpisodeDetails", "params": {"episodeid" : 131, "playcount" : 1, "lastplayed" : "2013-04-20 17:01:59" }, "id": 5},{"jsonrpc": "2.0", "method": "VideoLibrary.SetEpisodeDetails", "params": {"episodeid" : 129, "playcount" : 1, "lastplayed" : "2013-04-20 17:01:59" }, "id": 6}
17:16:58 T:8392 DEBUG: JSONRPC: Calling videolibrary.setepisodedetails
17:16:58 T:8392 DEBUG: JSONRPC: Type mismatch in type
17:16:58 T:9160 DEBUG: Previous line repeats 1 times.
17:16:58 T:9160 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/executable/)
17:16:58 T:9160 DEBUG: ParentPath = [addons://sources/executable/]
17:16:58 T:1064 NOTICE: Thread Background Loader start, auto delete: false
17:16:58 T:1064 DEBUG: Thread Background Loader 1064 terminating
17:16:58 T:8392 DEBUG: CAnnouncementManager - Announcement: OnUpdate from xbmc
17:16:58 T:8392 DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnUpdate
17:16:58 T:8392 DEBUG: script.watched.states: Response to SetEpisodesDetails: {'jsonrpc': '2.0', 'id': 5, 'result': 'OK'}
So the last lines show the RPC response but it only contains a response to the first request. Is there anything wrong with my request? Or is it XBMC that just really isnt processing all requests from the batch?
As a sidenote: I get "JSONRPC: Type mismatch in type" for all those request (even when not batching). But I dont get whats wrong. XBMC does not tell which the error is about?
I googled for it and it seems other people get it too:
http://forum.xbmc.org/showthread.php?tid...pid1237510