Small Command for radio playing from jamendo

This commit is contained in:
Eric Teunis de Boone 2016-10-10 12:27:35 +02:00
parent 90d61159a6
commit 5ab5f57658
1 changed files with 23 additions and 0 deletions

23
bin/jamendo Executable file
View File

@ -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"