diff --git a/start_platt.sh b/start_platt.sh index 3568d49..81e4348 100644 --- a/start_platt.sh +++ b/start_platt.sh @@ -8,7 +8,8 @@ rm -r *.xml* #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 -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 mpg123 -f -2048 *.mp3 \ No newline at end of file