URL wird überprüft
This commit is contained in:
parent
cdb787d492
commit
12c4af1846
1 changed files with 7 additions and 1 deletions
8
tg.sh
8
tg.sh
|
@ -1,3 +1,9 @@
|
|||
#!/bin/bash
|
||||
mpv $(wget -O- -q http://www.tagesschau.de/100sekunden/ | grep -Eo 'http:\/\/download.media.tagesschau.de\/video\/[^"]+\.webl\.webm')
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue