metalx1000

Download TV shows from stream-tv2

Jun 6th, 2016
613
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.48 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ $# -lt 1 ]
  4. then
  5.   echo "URL needed..."
  6.   exit 1
  7. fi
  8.  
  9. url="$1"
  10.  
  11. echo "Getting embeded URL..."
  12. embed="$(wget -q "$url" -O- |grep "embed"|grep "allmy"|cut -d\" -f2)"
  13.  
  14. echo "Getting Video Name..."
  15. #name="$(wget -q "$embed" -O-|grep "ttt"|cut -d\? -f2|cut -d\" -f1|sed 's/+/ /g')"
  16. name="$(basename "$url")"
  17. echo "Getting Video URL for $name..."
  18. video="$(wget -q "$embed" -O-|grep "file"|grep "allmyvideos"|cut -d\" -f4)"
  19.  
  20. axel -n 10 "$video" -o "${name}.mp4"
Add Comment
Please, Sign In to add comment