start_platt.sh aktualisiert

This commit is contained in:
2026-02-14 10:28:03 +00:00
parent 4445ca81d8
commit 98c1dab9dd

View File

@@ -8,7 +8,8 @@ rm -r *.xml*
#1) get current xml feed #1) get current xml feed
wget https://sr-mediathek.de/pcast/feeds/SR3_NUP_P/feed.xml wget https://sr-mediathek.de/pcast/feeds/SR3_NUP_P/feed.xml
#2) extract mp3 file and download it based on xml #2) extract mp3 file and download it based on xml
grep -E -i -o https\:\/\/.+\.mp3 feed.xml | tail -n 1 | xargs wget grep -E -i -o https\:\/\/.+\.mp3 feed.xml | head -n 1 | xargs wget
# since the grep ignores MP3 or mp3 it sometimes has the file extension as uppercase, so it maybe needed to be altered
rename.ul MP3 mp3 *.MP3
# play news # play news
mpg123 -f -2048 *.mp3 mpg123 -f -2048 *.mp3