You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update-htpc 302B

12345678910111213
  1. #!/usr/bin/env sh
  2. #
  3. # pbrisbin 2013 - trigger an XBMC library update on htpc.local.
  4. #
  5. ###
  6. htpc='htpc.local'
  7. if ping -c 1 $htpc &>/dev/null; then
  8. curl \
  9. -H 'Content-type: application/json' \
  10. -d '{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":"blue"}' \
  11. "http://$htpc:8080/jsonrpc"
  12. fi