Skip to content

Instantly share code, notes, and snippets.

@starenka
Created March 22, 2020 11:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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