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

NAME

TV::ProgrammesSchedules::Sony - Interface to Sony TV Programmes Schedules.

VERSION

Version 0.05

DESCRIPTION

Sony Entertainment Television was launched in the Indian sub-continent and the Middle East in October 1995. The channel is a joint partnership between Sony Pictures Entertainment and Argos Communications Enterprises a Singapore based entertainment company specialising in South Asian program production and media services.

As a result of the rapid and considerable success that Sony Entertainment Television enjoyed in the Indian sub-continent and the Middle East, the decision was taken to establish international feeds known as Sony Entertainment Television Asia. Major operations encompass the UK & Europe, the USA, Africa and Australasia.

The channel is now available throughout the world - a truly global operation bringing high quality entertainment to South Asians everywhere.

CONSTRUCTOR

The constructor expects a reference to an anonymous hash as input parameter. Table below shows the possible value of various keys (location, yyyy, mm, dd). The yyyy, mm and dd are optional. If missing picks up the current year, month and day. Currently covers SetAsia ONLY.

However plans are to cover others like SetIndia, MAXtelevision, SABTV, MAX Asia.

    +----------------------+----------+------+----+----+
    | Name                 | Location | YYYY | MM | DD |
    +----------------------+----------+------+----+----+
    | Australia            |   en-au  | 2011 |  4 |  7 |
    | Canada               |   en-ca  | 2011 |  4 |  7 |
    | New Zealand          |   en-nz  | 2011 |  4 |  7 |
    | Pakistan             |   en-pk  | 2011 |  4 |  7 |
    | South Africa         |   en-za  | 2011 |  4 |  7 |
    | UK & Europe          |   en-gb  | 2011 |  4 |  7 |
    | United Arab Emirates |   en-ae  | 2011 |  4 |  7 |
    | USA                  |   en-us  | 2011 |  4 |  7 |
    +----------------------+----------+------+----+----+

METHODS

get_url()

Prepare and return URL using the given information.

    use strict; use warnings;
    use TV::ProgrammesSchedules::Sony;

    my $sony = TV::ProgrammesSchedules::Sony->new({ location => 'en-gb' });
    print $sony->get_url();

get_listings()

Return the programmes listings for the given location. Data would be in the form of reference to a list containing anonymous hash with keys time, time and url for each of the programmes.

    use strict; use warnings;
    use TV::ProgrammesSchedules::Sony;

    my $sony     = TV::ProgrammesSchedules::Sony->new({ location => 'en-gb' });
    my $listings = $sony->get_listings();

as_xml()

Returns listings in XML format. By default it returns todays lisitng for Sony TV.

    use strict; use warnings;
    use TV::ProgrammesSchedules::Sony;

    my $sony = TV::ProgrammesSchedules::Sony->new({ location => 'en-gb' });
    print $sony->as_xml();

as_string()

Returns listings in a human readable format.

    use strict; use warnings;
    use TV::ProgrammesSchedules::Sony;

    my $sony = TV::ProgrammesSchedules::Sony->new({ location => 'en-gb' });

    print $sony->as_string();

    # or even simply
    print $sony;

AUTHOR

Mohammad S Anwar, <mohammad.anwar at yahoo.com>

BUGS

Please report any bugs/feature requests to bug-tv-programmesschedules-sony at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=TV-ProgrammesSchedules-Sony. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc TV::ProgrammesSchedules::Sony

You can also look for information at:

ACKNOWLEDGEMENTS

TV::ProgrammesSchedules::Sony provides information from SetAsia official website. This should be used as it is without any modifications. Sony Entertainment Television groups remain the sole owner of the data.

LICENSE AND COPYRIGHT

Copyright 2011 Mohammad S Anwar.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

DISCLAIMER

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.