Advertisement
rokytnji

clis

Jun 6th, 2015
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 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 1.FM $BLUE 2 $NC Audio Ink ·"
  35. echo -e " · $BLUE 3 $NC Gultch-radio $BLUE 4 $NC The Buzz ·"
  36. echo -e " · $BLUE 5 $NC Power_Rock $BLUE 6 $NC Schizophonic ·"
  37. echo -e " · $BLUE 7 $NC 80s radio $BLUE 8 $NC Rock-Radio ·"
  38. echo -e " · $BLUE 9 $NC 90s Radio $BLUE 10 $NC Radio Xenu ·"
  39. echo -e " · $BLUE 11 $NC WFMU $BLUE 12 $NC Rage Radio ·"
  40. echo -e " · $BLUE 13 $NC KikiNovak Radio $BLUE 14 $NC AGX ·"
  41. echo -e " · $BLUE 15 $NC Progressive $BLUE 16 $NC BadRok Radio ·"
  42. echo -e " · $BLUE 17 $NC Classic Gator Rock $BLUE 18 $NC All Dixie Rock ·"
  43. echo -e " · $BLUE 19 $NC AMPZ Adult $BLUE 20 $NC 106 Radio ·"
  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://205.164.35.31:80
  52. ;;
  53. 2)
  54. $PLAYER http://s4.total-streaming.com:9150
  55. ;;
  56. 3)
  57. $PLAYER http://66.225.205.72:80/
  58. ;;
  59. 4)
  60. $PLAYER http://108.61.73.120:14126
  61. ;;
  62. 5)
  63. $PLAYER http://192.240.102.195:9150/stream
  64. ;;
  65. 6)
  66. $PLAYER http://sc15.shoutcaststreaming.us:8030/1/
  67. ;;
  68. 7)
  69. $PLAYER http://pub7.rockradio.com:80/rr_alternative80s
  70. ;;
  71. 8)
  72. $PLAYER http://pub7.rockradio.com:80/rr_modernrock
  73. ;;
  74. 9)
  75. $PLAYER http://pub7.rockradio.com:80/rr_alternative90s
  76. ;;
  77. 10)
  78. $PLAYER http://radioxenu.com:8000/relay
  79. ;;
  80. 11)
  81. $PLAYER http://stream0.wfmu.org/freeform-128k
  82. ;;
  83. 12)
  84. $PLAYER http://viadj.viastreaming.net:7197
  85. ;;
  86. 13)
  87. $PLAYER http://www.radionovak.com:8000/radionovak.ogg
  88. ;;
  89. 14)
  90. $PLAYER http://198.154.106.102:8484
  91. ;;
  92. 15)
  93. $PLAYER http://pub7.rockradio.com:80/rr_progressiverock
  94. ;;
  95. 16)
  96. $PLAYER http://s7.viastreaming.net:8100/
  97. ;;
  98. 17)
  99. $PLAYER http://205.164.35.13:80
  100. ;;
  101. 18)
  102. $PLAYER http://199.195.194.92:8040
  103. ;;
  104. 19)
  105. $PLAYER http://67.213.213.137:8100
  106. ;;
  107. 20)
  108. echo ""
  109. echo "http://106radio.serverroom.us:9106"
  110. echo ""
  111. read customlink
  112. $PLAYER http://106radio.serverroom.us:9106
  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