diff options
Diffstat (limited to 'config/scripts/radioinfo-7-352')
-rwxr-xr-x | config/scripts/radioinfo-7-352 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config/scripts/radioinfo-7-352 b/config/scripts/radioinfo-7-352 new file mode 100755 index 0000000..7b8eeaa --- /dev/null +++ b/config/scripts/radioinfo-7-352 @@ -0,0 +1,24 @@ +#!/bin/bash +# AntenneBayern-Playlist +# $1 = outfile + +### Variabel +Name="Antenne Bayern [www.antenne.de]" +### + +# get... +wget -q --tries=2 --timeout=5 -O /tmp/playlist "http://www.antenne.de/antenne/mediathek/c_titelinfos/aby-big.php" + +# Artist/Title +all=`tail -n 6 /tmp/playlist | tac` +artist=${all/*$';">'/}; artist=${artist/$'<br>'*/} +title=${all/*$'<br>'/}; title=${title/$'<'\/'div>'*/} + +# write... +if [ $1 ]; then + echo $Name > $1 + echo $artist >> $1 + echo $title >> $1 +else + echo "$Name: Interpret/Titel = $artist / $title" +fi |