NAME
TV::ProgrammesSchedules::STAR - Interface to STAR TV Programmes Schedules.
VERSION
Version 0.04
DESCRIPTION
STAR is a leading media and entertainment company in Asia. STAR broadcasts over 60 television services in 13 languages to more than 300 million viewers across 53 Asian countries. STAR TV is the UK's leading provider for South Asian entertainment. STAR's bouquet of channels in the UK includes:
+-----------+---------------------------------------------------------------------------+
| Name | Description |
+-----------+---------------------------------------------------------------------------+
| STAR Plus | UK's Most Watched Hindi Pay General Entertainment Channel. |
| | |
| STAR One | UK's lighter general entertainment channel reflecting contemporary India. |
| | |
| STAR Gold | The Widest Reaching Bollywood Movie Channel in the UK. |
| | |
| STAR News | Europe's First 24 Hours Hindi News Channel. |
+-----------+---------------------------------------------------------------------------+
CONSTRUCTOR
The constructor optionally expects a reference to anonymous hash as input parameter. Possible keys to the anonymous hash are ( yyyy, mm, dd ). The yyyy, mm and dd are optional. If missing picks up the current year, month and day.
use strict; use warnings;
use TV::ProgrammesSchedules::STAR;
my $star_today = TV::ProgrammesSchedules::STAR->new();
my $star_on_2011_04_12 = TV::ProgrammesSchedules::STAR->new({ yyyy => 2011, mm => 4 dd => 12 });
METHODS
get_listings()
Return the programmes listings for the given channel.Data would be in the form of reference to a list containing anonymous hash with keys time and title for each of the programmes. The Possible values are listed below:
+-----------+-------+
| Channel | Value |
+-----------+-------+
| STAR Plue | plus |
| | |
| STAR One | one |
| | |
| STAR Gold | gold |
| | |
| STAR News | news |
+-----------+-------+
use strict; use warnings;
use TV::ProgrammesSchedules::STAR;
my $star = TV::ProgrammesSchedules::STAR->new();
my $listings = $star->get_listings('news');
as_xml()
Returns listings in XML format. By default it returns todays lisitng for STAR News TV.
use strict; use warnings;
use TV::ProgrammesSchedules::STAR;
my $star = TV::ProgrammesSchedules::STAR->new();
my $listings = $star->get_listings('news');
print $star->as_xml();
as_string()
Returns listings in a human readable format. By default it returns STAR News lisitng.
use strict; use warnings;
use TV::ProgrammesSchedules::STAR;
my $star = TV::ProgrammesSchedules::STAR->new();
my $listings = $star->get_listings('news');
print $star->as_string();
# or even simply
print $star;
AUTHOR
Mohammad S Anwar, <mohammad.anwar at yahoo.com>
BUGS
Please report any bugs/feature requests to bug-tv-programmesschedules-star at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=TV-ProgrammesSchedules-STAR. I'll 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::STAR
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=TV-ProgrammesSchedules-STAR
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
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.