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-8500-214 | |
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-8500-214')
-rwxr-xr-x | config/scripts/radioinfo-8500-214 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config/scripts/radioinfo-8500-214 b/config/scripts/radioinfo-8500-214 new file mode 100755 index 0000000..87a11c8 --- /dev/null +++ b/config/scripts/radioinfo-8500-214 @@ -0,0 +1,24 @@ +#!/bin/bash +# SRG-DRS Virus-Playlist +# $1 = outfile + +### Variabel +Name="SRG-DRS Virus [virus.ch]" +### + +# get.., schnapp dir den neusten Eintrag aus der Liste; schneide ihn zu auf "titel von artist" +all="`wget --quiet --tries=2 --timeout=5 -O - http://virus.ch/virus/ticker | grep -m1 date | cut -d '>' -f5 | cut -d '<' -f1`" + +# Titel, Artist +title=${all/$' von '*/} +artist=${all/*$' von '/} +# temp. no Info +artist=${artist:='---'}; title=${title:='---'} + +# write... +if [ $1 ]; then + echo "$Name" > $1 + echo "$Song" >> $1 +else + echo "$Name: Interpret/Titel = $artist / $title" +fi |