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-336 | |
download | vdr-plugin-radio-1dbb7611337dc4b61817cad734a47b1a0404b77c.tar.gz vdr-plugin-radio-1dbb7611337dc4b61817cad734a47b1a0404b77c.tar.bz2 |
Import of original Radio Plugin 1.0.01.0.0
Diffstat (limited to 'config/scripts/radioinfo-7-336')
-rwxr-xr-x | config/scripts/radioinfo-7-336 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/config/scripts/radioinfo-7-336 b/config/scripts/radioinfo-7-336 new file mode 100755 index 0000000..3128161 --- /dev/null +++ b/config/scripts/radioinfo-7-336 @@ -0,0 +1,27 @@ +#!/bin/bash +# sunshione live Playlist +# $1 = outfile + +### Variabel +Name="sunshine live [www.sunshine-live.de]" +### + +# get... +wget -q --tries=2 --timeout=5 -O /tmp/playlist "http://www.sunshine-live.de/index.php?id=15" + +# Artist/Title +artist=`grep -A19 'sunshine live - playlist' /tmp/playlist` +artist=${artist/*$'class="artist">'/}; artist=${artist/$'<'\/'td>'*/} +title=`grep -A18 'sunshine live - playlist' /tmp/playlist` +title=${title/*$'class="title">'/}; title=${title/$'<'\/'td>'*/} +# 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 |