From cd97b758ac366e21306a147873bb4a24dc58e8b8 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 9 Feb 2026 15:32:42 +0000 Subject: [PATCH] =?UTF-8?q?start=5Fplatt.sh=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start_platt.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 start_platt.sh diff --git a/start_platt.sh b/start_platt.sh new file mode 100644 index 0000000..13606d0 --- /dev/null +++ b/start_platt.sh @@ -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 \ No newline at end of file