play_news.sh hinzugefügt
This commit is contained in:
14
play_news.sh
Normal file
14
play_news.sh
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# remove old news
|
||||||
|
rm -r *.mp3
|
||||||
|
rm -r *.xml
|
||||||
|
|
||||||
|
# download latest news
|
||||||
|
#1) get current xml feed
|
||||||
|
wget https://www.tagesschau.de/tagesschau_in_100_sekunden/podcast-ts100-audio-100~podcast.xml
|
||||||
|
#2) extract mp3 file and download it based on xml
|
||||||
|
grep -E -o https\:\/\/.+\.mp3 *podcast.xml | xargs wget
|
||||||
|
|
||||||
|
# play news
|
||||||
|
mpg123 -f -2048 *.mp3
|
||||||
Reference in New Issue
Block a user