2015-12-23, 12:03
(2015-12-23, 11:31)Tolriq Wrote:(2015-12-23, 11:27)Martijn Wrote: Would it make sense or is it possible to have a function where you could put multiple items in an array that you only need one call?
This is the case, this is batching and it's needed for playlist handling to have queries in the correct order. Splitting commands needs we send x commands, wait for Kodi to handle then send the next, then the next. This make remotes sounds slower to users. Specially when we need to wait for the last command to start the playlist.
What i mean is something like:
Quote:{"jsonrpc":"2.0","id":503,"method":"Playlist.Add","params":{"playlistid":1,"item":{"episodeid":[array]}}}and add the items as provided in the array. This should at least solve when you send items from a single type.
If you need a mixed playlist you of course still need to send them separated in the order you need