mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-12-22 09:13:33 +01:00
Small Command for radio playing from jamendo
This commit is contained in:
parent
90d61159a6
commit
5ab5f57658
1 changed files with 23 additions and 0 deletions
23
bin/jamendo
Executable file
23
bin/jamendo
Executable 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"
|
Loading…
Reference in a new issue