one-file-projects/tg.sh

10 lines
223 B
Bash
Raw Normal View History

2015-06-28 23:49:42 +02:00
#!/bin/bash
2015-10-06 04:43:16 +02:00
url=$(wget -O- -q http://www.tagesschau.de/100sekunden/ | grep -Eo 'http:\/\/download.media.tagesschau.de\/video\/[^"]+\.webl\.webm')
2015-06-28 23:49:42 +02:00
2015-10-06 04:43:16 +02:00
if [ -z "$url" ]; then
echo "No file found"
exit 1
fi
mpv -fs $url