Skip to content

Instantly share code, notes, and snippets.

@th0ma5w
Created April 7, 2012 16:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save th0ma5w/2330333 to your computer and use it in GitHub Desktop.
Save th0ma5w/2330333 to your computer and use it in GitHub Desktop.
Play YouTube on LAN XBMC Eden
#!/bin/bash
curl -d "{\"jsonrpc\": \"2.0\", \"method\": \"Player.Open\", \"params\":{\"item\": { \"file\" : \"plugin://plugin.video.youtube/?action=play_video&videoid=$@\" }}, \"id\" : 1}" http://xbmc:xbmc@192.168.1.10:8080/jsonrpc
# curl and everything after it should be on one line. change the port and host to your
# liking and your username and password if you've changed it from the default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment