Actualice mi programa en perl llamado "Radio X" debido a que las emisoras no me gustaban , asi que actualice el hash con 31 estaciones , todas de diferentes generos , aunque la unica que siempre escucho siempre es la de musica clasica.
Aclaro que necesitan bajar el mplayer , esta el link de descarga en el script , una vez que lo tengan descargado y descomprimido creen una carpeta llamada
"mplayer" y copian todos los archivos del archivo descomprimido en la carpeta recien creada , todo esto tiene que ser en el mismo directorio donde este el script.
#!usr/bin/perl
#Radio X
#Version 0.4
#(C) Doddy Hackman 2014
#
#Download : http://www.mplayerhq.hu/MPlayer/releases/win32/MPlayer-mingw32-1.0rc2.zip
#
use Cwd;
my @emisoras = (
{},
{
"nombre" => "idobi Radio",
"genero" => "Alternative",
"link" => "http://69.46.88.21:80"
},
{
"nombre" => "BLUES RADIO (1.FM TM)",
"genero" => "Blues",
"link" => "http://205.164.35.58:80"
},
{
"nombre" => "Venice Classic Radio Italia",
"genero" => "Classical",
"link" => "http://174.36.206.197:8000"
},
{
"nombre" => "100hitz - New Country",
"genero" => "Country",
"link" => "http://69.4.234.186:9210"
},
{
"nombre" => "RADIO 7 - POLNOCNE",
"genero" => "Decades",
"link" => "http://94.23.36.107:443"
},
{
"nombre" => "COOLfahrenheit 93",
"genero" => "Easy Listening",
"link" => "http://203.150.225.77:8400"
},
{
"nombre" => "Ibiza Global Radio",
"genero" => "Electronic",
"link" => "http://198.50.197.161:8024"
},
{
"nombre" => "HBR1.com - I.D.M. Tranceponder",
"genero" => "Trance",
"link" => "http://ubuntu.hbr1.com:19800/trance.ogg"
},
{
"nombre" => "COOL radio - Beograd",
"genero" => "Folk",
"link" => "http://176.9.30.66:80"
},
{
"nombre" => "COOL radio - Beograd",
"genero" => "Folk",
"link" => "http://176.9.30.66:80"
},
{
"nombre" => "HPR4",
"genero" => "Inspirational",
"link" => "http://50.7.77.179:8024"
},
{
"nombre" => "Radio Carsija - Melli",
"genero" => "International",
"link" => "http://80.237.153.95:19406"
},
{
"nombre" => "TheJazzGroove.com",
"genero" => "Jazz",
"link" => "http://199.180.72.2:8015"
},
{
"nombre" => "Paisa Estereo",
"genero" => "Latin",
"link" => "http://199.217.118.10:7094"
},
{
"nombre" => "RockRadio1.Com",
"genero" => "Metal",
"link" => "http://77.74.192.50:8000"
},
{
"nombre" => "Adom 106.3FM",
"genero" => "Misc",
"link" => "http://67.159.60.45:8100"
},
{
"nombre" => "Healing",
"genero" => "New Age",
"link" => "http://222.122.178.183:11070"
},
{
"nombre" => "RADIO SOUND POP",
"genero" => "Pop",
"link" => "http://99.198.118.250:8076"
},
{
"nombre" => "Latido 90.1 FM",
"genero" => "Public Radio",
"link" => "http://64.251.21.48:42000"
},
{
"nombre" => "Radio Mandela",
"genero" => "Funk",
"link" => "http://184.154.150.93:9010"
},
{
"nombre" => "Boneyaad Radio",
"genero" => "Rap",
"link" => "http://69.175.103.226:8180"
},
{
"nombre" => "Reggae141.com",
"genero" => "Reggae",
"link" => "http://184.107.197.154:8002"
},
{
"nombre" => "Classic Rock 915",
"genero" => "Rock",
"link" => "http://117.53.175.113:15018"
},
{
"nombre" => "181.fm - Rock 181 (Active Rock)",
"genero" => "Rock",
"link" => "http://108.61.73.118:14008"
},
{
"nombre" => "181.FM - The Buzz",
"genero" => "Rock",
"link" => "http://108.61.73.119:14126"
},
{
"nombre" => "181.FM - Good Time Oldies",
"genero" => "Rock",
"link" => "http://108.61.73.118:14046"
},
{
"nombre" => "Top40",
"genero" => "Pop Dance R&B Rock",
"link" => "http://95.141.24.79:80"
},
{
"nombre" => "MUSIK.ORIENTAL",
"genero" => "Seasonal and Holiday",
"link" => "http://193.34.51.40:80"
},
{
"nombre" => "NOVA 100.3",
"genero" => "Soundtracks",
"link" => "http://117.53.175.113:15010"
},
{
"nombre" => "Alex Jones - Infowars.com",
"genero" => "Talk",
"link" => "http://50.7.130.109:80"
},
{
"nombre" => "illusive Radio Punta",
"genero" => "Themes",
"link" => "http://38.96.148.141:9996"
}
);
$SIG{INT} = \&retorno;
chdir( getcwd() . "/mplayer/" );
menu();
sub retorno {
print "\n\n[+] Press any key for return to the menu\n\n";
<stdin>;
clean();
menu();
}
sub menu {
head();
print "\n\n[+] Listing ["
. int( @emisoras - 1 ) . "] "
. "stations found ...\n";
for my $em ( 1 .. @emisoras - 1 ) {
print "\n[+] ID : " . $em . "\n";
print "[+] Name : " . $emisoras[$em]->{nombre} . "\n";
print "[+] Type : " . $emisoras[$em]->{genero} . "\n";
#print "[$em] - ".$emisoras[$em]->{genero}."\n";
}
print "\n[+] Write exit to go out\n";
print "\n[+] Option : ";
chomp( my $op = <stdin> );
if ( $op eq "exit" ) {
copyright();
}
if ( $op =~ /\d+/ ) {
print "\n[!] Listening : " . $emisoras[$op]->{link} . " ...\n\n";
system("mplayer $emisoras[$op]->{link}");
}
copyright();
}
sub head {
clean();
print qq(
@@@@@ @ @@@@ @ @@@@ @ @
@ @ @ @ @ @ @ @ @ @
@ @ @ @ @ @ @ @ @ @ @
@ @ @ @ @ @ @ @ @ @ @
@@@@@ @ @ @ @ @ @ @ @
@ @ @ @ @ @ @ @ @ @ @
@ @ @@@@@ @ @ @ @ @ @ @
@ @ @ @ @ @ @ @ @ @ @
@ @ @ @ @@@@ @ @@@@ @ @
);
}
sub copyright {
print "\n\n-- == (C) Doddy Hackman 2014 == --\n\n";
<stdin>;
exit(1);
}
sub clean {
my $os = $^O;
if ( $os =~ /Win32/ig ) {
system("cls");
}
else {
system("clear");
}
}
#The End ?
Eso es todo.