Advertisement
rokytnji

clir

Jun 6th, 2015
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ########################################################
  4. # cli_radio #
  5. # based on IceFox radio-select script #
  6. # <http://www.linuxtrack.com/t1214-radioselect-sh.htm> #
  7. ########################################################
  8.  
  9. # set colors
  10. RED='\e[41m'
  11. BLUE='\e[44m'
  12. CYAN='\e[46m'
  13. NC='\e[0m'
  14.  
  15. # set player
  16. PLAYER="/usr/bin/mplayer"
  17.  
  18. # verify if $PLAYER is installed
  19. if [ -e $PLAYER ]; then
  20. # stop current $PLAYER session
  21. if [ "$(pidof mplayer)" ]; then
  22. killall mplayer
  23. fi
  24. while true; do
  25. clear
  26. echo ""
  27. echo " ·····················································"
  28. echo " · select a station and play ·"
  29. echo " · ·"
  30. echo -e " · $CYAN[space]$NC to pause, $CYAN[q]$NC to stop, $CYAN[Ctrl]+[c]$NC to quit ·"
  31. echo " ·····················································"
  32. echo ""
  33. echo " ·····················································"
  34. echo -e " · $BLUE 1 $NC Alternative Reign High $BLUE 2 $NC Blue Bucket Radio ·"
  35. echo -e " · $BLUE 3 $NC BAGeL Radio $BLUE 4 $NC Alternative Rock Variety ·"
  36. echo -e " · $BLUE 5 $NC Bladerunner Radio $BLUE 6 $NC Earwaves ·"
  37. echo -e " · $BLUE 7 $NC Big R Radio $BLUE 8 $NC ZROCK ·"
  38. echo -e " · $BLUE 9 $NC Kiki Novak $BLUE 10 $NC Psychedelicized ·"
  39. echo -e " · $BLUE 11 $NC Shizophonic $BLUE 12 $NC Icecast ·"
  40. echo -e " · $BLUE 13 $NC Planet Radio $BLUE 14 $NC The Rock ·"
  41. echo -e " · $BLUE 15 $NC The Buzz $BLUE 16 $NC Live & Loud ·"
  42. echo -e " · $BLUE 17 $NC Mizfits $BLUE 18 $NC Jammerzradio ·"
  43. echo -e " · $BLUE 19 $NC KGSR - Seattle $BLUE 20 $NC Seven Inch Soul ·"
  44. echo " ·····················································"
  45. echo ""
  46. echo -e " select a $BLUE number $NC from 1 to 20 then hit $CYAN[Enter]$NC"
  47. echo ""
  48. read choix
  49. case $choix in
  50. 1)
  51. $PLAYER http://sc1.reignradio.net:8086
  52. ;;
  53. 2)
  54. $PLAYER http://206.217.201.137:8007/
  55. ;;
  56. 3)
  57. $PLAYER http://xstream1.somafm.com:9090
  58. ;;
  59. 4)
  60. $PLAYER http://listen.djcmedia.com:80/megashufflerockhigh
  61. ;;
  62. 5)
  63. $PLAYER http://s3.voscast.com:8200/
  64. ;;
  65. 6)
  66. $PLAYER http://uwstream2.somafm.com:5106
  67. ;;
  68. 7)
  69. $PLAYER http://67.228.150.199:8040
  70. ;;
  71. 8)
  72. $PLAYER http://s4.total-streaming.com:9440/
  73. ;;
  74. 9)
  75. $PLAYER http://www.radionovak.com:8000/radionovak.ogg
  76. ;;
  77. 10)
  78. $PLAYER http://s1.castserver.net:8006/
  79. ;;
  80. 11)
  81. $PLAYER http://tunein.com/radio/Schizophonic-Radio-s133608/
  82. ;;
  83. 12)
  84. $PLAYER http://50.7.96.138:8104/stream
  85. ;;
  86. 13)
  87. $PLAYER http://stn2.streamthenet.com:6050/
  88. ;;
  89. 14)
  90. $PLAYER http://108.61.73.119:8064
  91. ;;
  92. 15)
  93. $PLAYER http://108.61.73.120:14126
  94. ;;
  95. 16)
  96. $PLAYER http://65.60.32.246:80/
  97. ;;
  98. 17)
  99. $PLAYER http://192.81.248.192:8064/
  100. ;;
  101. 18)
  102. $PLAYER http://192.81.248.192:8116/
  103. ;;
  104. 19)
  105. $PLAYER http://192.99.35.93:5486/stream
  106. ;;
  107. 20)
  108. echo ""
  109. echo "http://uwstream2.somafm.com:7776"
  110. echo ""
  111. read customlink
  112. $PLAYER http://uwstream2.somafm.com:7776
  113. ;;
  114. *)
  115. echo -e "$RED wrong choice $NC"
  116. echo "try again..."
  117. echo ""
  118. sleep 2
  119. clear
  120. ;;
  121. esac
  122. done
  123. else
  124. echo " this script need mplayer"
  125. echo " install it or change the PLAYER"
  126. echo "exiting ..."
  127. exit 0
  128. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement