Advertisement
Guest User

radio.sh

a guest
Nov 10th, 2012
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.10 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #===============================================================================
  4. #
  5. #          FILE: radio.sh
  6. #  
  7. #         USAGE: ./radio.sh  
  8. #  
  9. #   DESCRIPTION: Radios online
  10. #  
  11. #       OPTIONS: None
  12. #  REQUIREMENTS: Mplayer
  13. #          BUGS: None
  14. #         NOTES: None
  15. #        AUTHOR: Due204
  16. #  ORGANIZATION: yo
  17. #       CREATED: 03/11/2012
  18. #      REVISION: 0.1
  19. #===============================================================================
  20.  
  21. function menu()
  22. {
  23.     echo  "Due204"
  24.     echo  "Script para seleccionar que radio queremos escuchar"
  25.     echo  " "
  26.     echo  "1  Mega 98.3 Puro rock Nacional"
  27.     echo  "2  101.5 Pop"
  28.     echo  "3  Rock and Pop"
  29.     echo  "4  RockRadio1 Clasicos del Rock y el Metal"
  30.     echo  "5  Metro 95.1"
  31.     echo  "6  RadioMc"
  32.     echo  "7  Radio Obsecion"
  33.     echo  "8  Cultuta Geek"
  34.     echo  "9  Andrés Calamaro (cienradios)"
  35.     echo  "10 Charly García (cienradios)"
  36.     echo  "11 Fito Páez (cienradios)"
  37.     echo  "12 Soda Stereo (cienradios)"
  38.     echo  "13 Los redondos (cienradios)"
  39.     echo  "14 Los fabulosos cadillacs (cienradios)"
  40.     echo  "15 Los auténticos decadentes (cienradios)"
  41.     echo  "0  Salir"
  42.     echo  " "  
  43.     echo  "Due204"
  44.     echo  "Seleccione una de las radios"
  45.     read RADIO
  46.  
  47.  
  48. }
  49.  
  50. if [ -z $1 ]; then
  51.     menu
  52. else
  53.     RADIO=`echo "$1"`
  54. fi
  55.  
  56. if [ "$RADIO" = "1" ]; then  
  57.     mplayer http://mega.telecomdatacenter.com.ar/mega
  58. elif [ "$RADIO" = "2" ]; then  
  59.     mplayer http://pop.telecomdatacenter.com.ar/pop/.wma
  60. elif [ "$RADIO" = "3" ]; then  
  61.     mplayer http://streaming.fmrockandpop.com/rockandpop
  62. elif [ "$RADIO" = "4" ]; then  
  63.     mplayer http://77.74.192.50:8000
  64. elif [ "$RADIO" = "5" ]; then  
  65.     mplayer http://streaming.metro951.com/metro
  66. elif [ "$RADIO" = "6" ]; then  
  67.     mplayer http://media.mctekk.com:8000/
  68. elif [ "$RADIO" = "7" ]; then  
  69.     mplayer http://radio.anime-obsesion.net:8902/
  70. elif [ "$RADIO" = "8" ]; then  
  71.     mplayer http://64.37.55.229:8026/
  72. elif [ "$RADIO" = "9" ]; then  
  73.     mplayer http://buecrplb01.cienradios.com.ar/Andres_Calamaro_y_Artistas_Relacionados_64.mp3
  74.  
  75. elif [ "$RADIO" = "10" ]; then  
  76.     mplayer http://buecrplb01.cienradios.com.ar/Charly_Garcia_y_Artistas_Relacionados_64.mp3
  77.  
  78. elif [ "$RADIO" = "11" ]; then  
  79.     mplayer http://buecrplb01.cienradios.com.ar/Fito_Paez_y_Artistas_Relacionados_64.mp3
  80.  
  81. elif [ "$RADIO" = "12" ]; then  
  82.     mplayer http://buecrplb01.cienradios.com.ar/Soda_Stereo_y_Artistas_Relacionados_64.mp3
  83.  
  84. elif [ "$RADIO" = "13" ]; then  
  85.     mplayer http://buecrplb01.cienradios.com.ar/Los_Redondos_y_Artistas_Relacionados_64.mp3
  86.  
  87. elif [ "$RADIO" = "14" ]; then  
  88.     mplayer http://buecrplb01.cienradios.com.ar/Los_Fabulosos_Cadillacs_y_Artistas_Relacionados_64.mp3
  89.  
  90. elif [ "$RADIO" = "15" ]; then  
  91.     mplayer http://buecrplb01.cienradios.com.ar/Autenticos_Decadentes_y_Art_Rel_64.mp3
  92.  
  93. elif [ "$RADIO" = "0" ]; then  
  94.     exit
  95. else  
  96.     echo "A seleccionado una radio incorecta"; sleep 1;
  97.     echo "Ingrese un numero de radio correcto"; sleep 1; clear; $0
  98. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement