Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
[ -z "$1" ] && echo "Pass a Kodi IP" && exit 1
curl -sS -H 'Content-Type: application/json' --data-binary '{ "id": 1, "jsonrpc": "2.0", "method": "Player.Stop", "params": { "playerid": 2 } }' "http://$1/jsonrpc" -o /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.