Short script to send YouTube videos to an XBMC instance. It can take a YouTube URL or video ID.
# ./play_on_xbmc.py What is the URL or ID of the YouTube video? > dQw4w9WgXcQ Playing 'Rick Astley - Never Gonna Give You Up'
# ./play_on_xbmc.py https://www.youtube.com/watch?v=dQw4w9WgXcQ Playing 'Rick Astley - Never Gonna Give You Up'