one-file-projects/tg.sh

10 lines
223 B
Bash
Executable File

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