1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-22 01:03:35 +01:00

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

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"