notes/Download TV shows from streamtv2-C01cqb4K.sh
#!/bin/bash
if [ $# -lt 1 ]
then
echo "URL needed..."
exit 1
fi
url="$1"
echo "Getting embeded URL..."
embed="$(wget -q "$url" -O- |grep "embed"|grep "allmy"|cut -d\" -f2)"
echo "Getting Video Name..."
#name="$(wget -q "$embed" -O-|grep "ttt"|cut -d\? -f2|cut -d\" -f1|sed 's/+/ /g')"
name="$(basename "$url")"
echo "Getting Video URL for $name..."
video="$(wget -q "$embed" -O-|grep "file"|grep "allmyvideos"|cut -d\" -f4)"
axel -n 10 "$video" -o "${name}.mp4"
syntax highlighted by Code2HTML, v. 0.9.1