start_platt.sh hinzugefügt

This commit is contained in:
2026-02-09 15:32:42 +00:00
parent 447d41a4b1
commit cd97b758ac

14
start_platt.sh Normal file
View 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://sr-mediathek.de/pcast/feeds/SR3_NUP_P/feed.xml
#2) extract mp3 file and download it based on xml
grep -E -o https\:\/\/.+\.mp3 feed.xml | tail -n 1 | xargs wget
# play news
mpg123 -f -2048 *.mp3