SHARE
TWEET

mediasetviewer

a guest Jan 27th, 2014 151 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. ## Mediaset VOD
  3.  
  4. #ID=$(curl "$1" 2>/dev/null | grep videoMetadataId | sed "s/.*'\(.*\)'.*/\1/")
  5. ID=$(curl "$1" 2>/dev/null | grep iframe | sed 's/.*src=.*emb\/\(.*\)\".*/\1/')
  6. STREAM=$(curl "http://cdnselector.xuniplay.fdnames.com/GetCDN.aspx?streamid=$ID" 2>/dev/null | grep -o 'video src=[^>]*' | awk -F '"' '{print $2}' | grep -v .ism | head -1)
  7. mplayer "$STREAM"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top