The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Live365 - get Live365.com audio stream URLs

DESCRIPTION

This module allows you to easily obtain the direct URL of a Live365.com MP3 stream to listen to it in your MP3 player instead being forced to go through the popup player on their site (which tries to stop you listening to it if you close the popup window).

SYNOPSIS

    use WWW::Live365;
    
    # I was listening to the ambient stream from zzzone.net while I wrote this module.
    my $stream_url = get_stream_url('doctorzz'); 
    
    change_stream_client_ip($stream_url, $my_ip_address);
    

METHODS

get_stream_url()

    my $stream_url = get_stream_url('doctorzz');
    

Does what it says on the tin. This method has to retrieve a page from live365.com in order to get some parameters, one of which is the IP address of the machine requesting the page. They may check this against another one of the parameters, which is a unique identifier, so you will probably want to run the stream URL through the next method.

change_stream_client_ip()

    my $fixed_stream_url = change_stream_client_ip($stream_url, '127.0.0.1');

This method alters the stream URL to appear as if it was requested from a certain IP address, probably that of the machine your MP3 player is on. If you have Regexp::Common installed, this method will check your IP string is a valid IP address, and die if it is not.

AUTHOR

Earle Martin <hex@cpan.org>

http://downlode.org/Code/Perl/

COPYRIGHTS

Copyright 2007 Earle Martin. All rights reserved.

Live365.com is a trademark of Live365.com, Inc.

LICENSE

This module is free software and released under the same license as Perl itself.