Created
July 18, 2012 04:13
-
-
Save husio/3134122 to your computer and use it in GitHub Desktop.
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 | |
| if [ $# -eq 0 ] | |
| then | |
| echo "" | |
| echo " 1. Radio TOK FM (alias: tokfm)" | |
| echo " 2. RMF FM (alias:rmffm)" | |
| echo " 3. Jedynka (alias: jedynka)" | |
| echo " 4. Dwojka (alias: dwojka)" | |
| echo " 5. Trojka (alias: trojka)" | |
| echo " 6. Euro [dawniej bis] (alias: euro)" | |
| echo " 7. Antyradio (alias: anty)" | |
| echo "" | |
| read adres | |
| else | |
| adres=$1 | |
| fi | |
| case $adres in | |
| "1"|"tokfm" ) adres=http://olsztyn.radio.pionier.net.pl:8000/z/radiotok4.ogg;; | |
| "2"|"rmffm" ) adres=http://91.121.125.91:8002/;; | |
| "3"|"jedynka" ) adres="mms://stream.polskieradio.pl/program1";; | |
| "4"|"dwojka" ) adres="mms://stream.polskieradio.pl/program2";; | |
| "5"|"trojka" ) adres="mms://stream.polskieradio.pl/program3";; | |
| "6"|"euro" ) adres="mms://stream.polskieradio.pl/program4";; | |
| "7"|"anty" ) adres="http://213.251.138.121:7000/";; | |
| * ) echo "Unknown";; | |
| esac | |
| echo $adres | |
| mplayer "${adres}" >/dev/null 2>&1 | |
| exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment