diff options
author | Ulrich Eckhardt <vdr@uli-eckhardt.de> | 2017-04-23 16:10:16 +0200 |
---|---|---|
committer | Ulrich Eckhardt <vdr@uli-eckhardt.de> | 2017-04-23 16:10:16 +0200 |
commit | 1dbb7611337dc4b61817cad734a47b1a0404b77c (patch) | |
tree | e9b41e387c25c05678d84ce388f9e1977ff18f84 /config/scripts/radioinfo-7-352 | |
download | vdr-plugin-radio-1.0.0.tar.gz vdr-plugin-radio-1.0.0.tar.bz2 |
Import of original Radio Plugin 1.0.01.0.0
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 |