1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-22 09:13:33 +01:00
dotfiles/bin/jamendo

24 lines
469 B
Text
Raw Normal View History

#!/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"