2010-09-30, 13:12
Do you know if this is working or not:
I tried this but the output is always zero, while the response of the first command is:
return playlist:
Fixed it. Should be:
Code:
curl -i -X POST -d '{"jsonrpc": "2.0", "method": "AudioPlaylist.Add", "file": "/home/xbmc/Music/Alternative Singles/Air - All I Need.mp3", "id": 1}' http://localhost:9019/jsonrpc
curl -i -X POST -d '{"jsonrpc": "2.0", "method": "AudioPlaylist.GetItems", "id": 1}' http://localhost:9019/jsonrpc
I tried this but the output is always zero, while the response of the first command is:
Code:
{
"id" : 1,
"jsonrpc" : "2.0",
"result" : "OK"
}
return playlist:
Code:
{
"id" : 1,
"jsonrpc" : "2.0",
"result" : {
"end" : 0,
"start" : 0,
"total" : 0
}
}
Fixed it. Should be:
Code:
curl -i -X POST -d '{"jsonrpc": "2.0", "method": "AudioPlaylist.Add", "params": { "file": "/home/xbmc/Music/Adele - 19/101-adele-daydreams.mp3"}, "id": 1}' http://localhost:9019/jsonrpc