2010-09-05, 20:14
jonib Wrote:Hi, I'm working on my XBMCRepeat plugin for EventGhost.
I started to add some more functionality using the HTTP API, but as that is going away I'm trying this newfangled JSON-RPC.
I have gotten same stuff working, but now I'm stuck (hopefully its nothing embarrassing).
So I'm trying to use VideoPlaylist.Add to add a video file to the playlist in XBMC (Dharma Beta1)
The below command adds the "e:\test.avi" to the playlist and works, but there is no text, only an empty(blank) line when looking in the "Now playing" window.The below is the result from VideoPlaylist.GetItems:Code:{"params": {"file": "E:\\test.avi"}, "jsonrpc": "2.0", "method": "VideoPlaylist.Add", "id": 1}
So I figured I need to add a Label so I tried the below:Code:{
"file" : "E:\\test.avi",
"label" : "",
"thumbnail" : "special://home/userdata/Thumbnails/Video/4/auto-455227d7.tbn"
}Still works but still no labelCode:{"params": {"file": "E:\\test.avi", "label": "Test"}, "jsonrpc": "2.0", "method": "VideoPlaylist.Add", "id": 1}
So can someone tell me what I'm doing wrong? and/or point me to some more reading material about the parameter syntax.
jonib
Try using the webinterface branch, instead of adding things by path, add them by database id. Ideally all items should exist within the library.