Skip to content

Instantly share code, notes, and snippets.

@starenka
Created March 22, 2020 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save starenka/b4369342638badbdd2f56b89c23427c6 to your computer and use it in GitHub Desktop.
Save starenka/b4369342638badbdd2f56b89c23427c6 to your computer and use it in GitHub Desktop.
#!/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