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-1115-433 | |
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-1115-433')
-rwxr-xr-x | config/scripts/radioinfo-1115-433 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/config/scripts/radioinfo-1115-433 b/config/scripts/radioinfo-1115-433 new file mode 100755 index 0000000..952cd51 --- /dev/null +++ b/config/scripts/radioinfo-1115-433 @@ -0,0 +1,27 @@ +#!/bin/bash +# OE3-Playlist +# $1 = outfile + +### Variabel +Name="OE3 [oe3.ORF.at]" +### + +# get... +wget -q --tries=1 --timeout=10 -O /tmp/playlist "http://solutions.orf.at/orf/hitservice/index.cgi?view=tracklist" + +# Artist/Title +title=`grep -A2 'class="playlisttop"' /tmp/playlist` +title=${title/*$'<b>'/}; title=${title/$'<'\/'b>'*/} +artist=`grep -A4 'class="playlisttop"' /tmp/playlist` +artist=${artist/*$' '/} +# 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 |