Created
January 28, 2019 05:01
-
-
Save Trshant/bc2d30c020f27dc1e2eeb7ce19838d98 to your computer and use it in GitHub Desktop.
this is a sh script where i can play some internet radio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# call this using bash radio.sh Mirchi | |
# Start list of radio. If the link ends with m3u, then add it as pWhateverYoucallIt. else put it in as cName | |
pMajesticJukebox="http://uk3.internet-radio.com:8405/live.m3u" | |
cMirchi='http://peridot.streamguys.com:7150/Mirchi' | |
cBollywoodHits='http://50.7.77.115:8174/' | |
cAfsanaIndia='http://174.36.206.197:7019/stream/1/' | |
#end list of Radio Stations | |
Station=$1 | |
echo $Station | |
tmp="c$Station" | |
link=${!tmp} | |
echo $link; | |
if [ -z "$link" ] # in case it isnt a radio station and needs to be played in playlist mode.... | |
then | |
tmp="p$Station" | |
link=${!tmp} | |
echo $link | |
mplayer -playlist $link | |
else | |
mplayer $link | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment