From 5ab5f57658c2b95bd9ad7d48ebf3fde50f014c44 Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Mon, 10 Oct 2016 12:27:35 +0200 Subject: [PATCH] Small Command for radio playing from jamendo --- bin/jamendo | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 bin/jamendo diff --git a/bin/jamendo b/bin/jamendo new file mode 100755 index 0000000..8e1944a --- /dev/null +++ b/bin/jamendo @@ -0,0 +1,23 @@ +#!/bin/bash +# Listen to a jamendo stream + +MPLAYER='mplayer' +URL='http://streaming.radionomy.com/Jam' +# Stream can be: Rock, Electro, Pop, Jazz, Lounge, Classical, Relaxation, Folk, Metal, Indie, HipHop, Country + +STREAMS="Rock Electro Pop Jazz Lounge Classical Relaxation Folk Metal Indie HipHop Country" + +if [ -z $1 ] +then + echo "What do you want to listen to:" + select STREAM in $STREAMS; + do + STREAM=$STREAM + break + done +else + STREAM=$1 +fi + + +$MPLAYER "$URL$STREAM"