summaryrefslogtreecommitdiff
path: root/config/scripts/radioinfo-1093-541
diff options
context:
space:
mode:
Diffstat (limited to 'config/scripts/radioinfo-1093-541')
-rwxr-xr-xconfig/scripts/radioinfo-1093-54127
1 files changed, 27 insertions, 0 deletions
diff --git a/config/scripts/radioinfo-1093-541 b/config/scripts/radioinfo-1093-541
new file mode 100755
index 0000000..bbac81c
--- /dev/null
+++ b/config/scripts/radioinfo-1093-541
@@ -0,0 +1,27 @@
+#!/bin/bash
+# MDR Jump-Playlist
+# $1 = outfile
+
+### Variabel
+Name="MDR Jump [www.jumpradio.de]"
+###
+
+# get...
+wget -q --tries=2 --timeout=5 -O /tmp/playlist "http://www.jumpradio.de/scripts/musik/wsx_vote_recher.cfm?&titelsuche=zeit"
+
+# Artist/Title
+artist=`grep -B30 '<h2>Suche nach Datum und Uhrzeit' /tmp/playlist | tac`
+artist=${artist/*$'">'/}; artist=${artist/$'<'\/'h2>'*/}
+title=`grep -B29 '<h2>Suche nach Datum und Uhrzeit' /tmp/playlist | tac`
+title=${title/*$'">"'/}; title=${title/$'"<'\/'p>'*/}
+# temp. no Info
+artist=${artist:='---'}; titel=${title:='---'}
+
+# write...
+if [ $1 ]; then
+ echo $Name > $1
+ echo $artist >> $1
+ echo $title >> $1
+else
+ echo "$Name: Interpret/Titel = $artist / $title"
+fi