Skip to content

Instantly share code, notes, and snippets.

@dardo82
Last active February 26, 2016 03:15
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 dardo82/049a67942cdff7ddb6fa to your computer and use it in GitHub Desktop.
Save dardo82/049a67942cdff7ddb6fa to your computer and use it in GitHub Desktop.
Stream StarTrek Ent
#!/bin/sh
# Stream an FLV to AppleTV
# using AirPlay mirroring
airplay-mirror start
URL="guardarefilm.tv/serie-tv-streaming/3506-star-trek-enterprise.html";EP=${1/x/_}
open -W -a vlc $(curl $URL|sed -n "s/embed/mobile/;s/-640x360.html/.mp4/;/sd-$EP\"/p"|cut -d\" -f8)
airplay-mirror stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment