Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ########################################################
- # cli_radio #
- # based on IceFox radio-select script #
- # <http://www.linuxtrack.com/t1214-radioselect-sh.htm> #
- ########################################################
- # set colors
- RED='\e[41m'
- BLUE='\e[44m'
- CYAN='\e[46m'
- NC='\e[0m'
- # set player
- PLAYER="/usr/bin/mplayer"
- # verify if $PLAYER is installed
- if [ -e $PLAYER ]; then
- # stop current $PLAYER session
- if [ "$(pidof mplayer)" ]; then
- killall mplayer
- fi
- while true; do
- clear
- echo ""
- echo " ·····················································"
- echo " · select a station and play ·"
- echo " · ·"
- echo -e " · $CYAN[space]$NC to pause, $CYAN[q]$NC to stop, $CYAN[Ctrl]+[c]$NC to quit ·"
- echo " ·····················································"
- echo ""
- echo " ·····················································"
- echo -e " · $BLUE 1 $NC Alternative Reign High $BLUE 2 $NC Blue Bucket Radio ·"
- echo -e " · $BLUE 3 $NC BAGeL Radio $BLUE 4 $NC Alternative Rock Variety ·"
- echo -e " · $BLUE 5 $NC Bladerunner Radio $BLUE 6 $NC Earwaves ·"
- echo -e " · $BLUE 7 $NC Big R Radio $BLUE 8 $NC ZROCK ·"
- echo -e " · $BLUE 9 $NC Kiki Novak $BLUE 10 $NC Psychedelicized ·"
- echo -e " · $BLUE 11 $NC Shizophonic $BLUE 12 $NC Icecast ·"
- echo -e " · $BLUE 13 $NC Planet Radio $BLUE 14 $NC The Rock ·"
- echo -e " · $BLUE 15 $NC The Buzz $BLUE 16 $NC Live & Loud ·"
- echo -e " · $BLUE 17 $NC Mizfits $BLUE 18 $NC Jammerzradio ·"
- echo -e " · $BLUE 19 $NC KGSR - Seattle $BLUE 20 $NC Seven Inch Soul ·"
- echo " ·····················································"
- echo ""
- echo -e " select a $BLUE number $NC from 1 to 20 then hit $CYAN[Enter]$NC"
- echo ""
- read choix
- case $choix in
- 1)
- $PLAYER http://sc1.reignradio.net:8086
- ;;
- 2)
- $PLAYER http://206.217.201.137:8007/
- ;;
- 3)
- $PLAYER http://xstream1.somafm.com:9090
- ;;
- 4)
- $PLAYER http://listen.djcmedia.com:80/megashufflerockhigh
- ;;
- 5)
- $PLAYER http://s3.voscast.com:8200/
- ;;
- 6)
- $PLAYER http://uwstream2.somafm.com:5106
- ;;
- 7)
- $PLAYER http://67.228.150.199:8040
- ;;
- 8)
- $PLAYER http://s4.total-streaming.com:9440/
- ;;
- 9)
- $PLAYER http://www.radionovak.com:8000/radionovak.ogg
- ;;
- 10)
- $PLAYER http://s1.castserver.net:8006/
- ;;
- 11)
- $PLAYER http://tunein.com/radio/Schizophonic-Radio-s133608/
- ;;
- 12)
- $PLAYER http://50.7.96.138:8104/stream
- ;;
- 13)
- $PLAYER http://stn2.streamthenet.com:6050/
- ;;
- 14)
- $PLAYER http://108.61.73.119:8064
- ;;
- 15)
- $PLAYER http://108.61.73.120:14126
- ;;
- 16)
- $PLAYER http://65.60.32.246:80/
- ;;
- 17)
- $PLAYER http://192.81.248.192:8064/
- ;;
- 18)
- $PLAYER http://192.81.248.192:8116/
- ;;
- 19)
- $PLAYER http://192.99.35.93:5486/stream
- ;;
- 20)
- echo ""
- echo "http://uwstream2.somafm.com:7776"
- echo ""
- read customlink
- $PLAYER http://uwstream2.somafm.com:7776
- ;;
- *)
- echo -e "$RED wrong choice $NC"
- echo "try again..."
- echo ""
- sleep 2
- clear
- ;;
- esac
- done
- else
- echo " this script need mplayer"
- echo " install it or change the PLAYER"
- echo "exiting ..."
- exit 0
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement