As mentioned in this, now closed thread, I am able to get a youtube video to play
but when I try to modify the command as below to play a folder it doesnt work. I get the error
curl -s -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "method": "Player.Open", "params": {"item": { "directory" : "/storage/.kodi/music/Pop"}}, "id": 1}' http://192.168.1.52:8080/jsonrpc
{"error":curl -s -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "method": "Player.Open", "params": {"item": { "directory" : "/storage/.kodi/music/Pop"}}, "id": 1}' http://192.168.1.52:8080/jsonrpc" : "/storage/.kodi/music/Pop"}}, "id": 1}' http://192.168
{"error":{"code":-32602,"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}i
can someone help troublshoot it please?
Enable Kodi debug log and post it.
I tried same command and it plays audio/video from specified folder.
1 Like
My path to the music dir was wrong. its /storage/music/Pop not /storage/.kodi/music/Pop
Works a charm. Thanks a bunch @vpeter
One last thing, any idea how to apply a condition like “Repeat Folder” or “Random” etc to this?
1 Like
Try
curl -s -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "method": "Player.Open", "params": {"item": { "directory": "/storage/music/Pop"}, "options": {"repeat": "all", "shuffled": True}}, "id": 1}' http://192.168.1.52:8080/jsonrpc
1 Like
The command doesnt work with the shuffle part. removing that part makes it work in repeat.
1 Like
system
Closed
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.