NAME
Net::TiVo::Show
- Class that wraps the XML interface that defines a TiVo show.
SYNOPSIS
use Net::TiVo;
my $tivo = Net::TiVo->new(
host => '192.168.1.25',
mac => 'MEDIA_ACCESS_KEY'
);
for my $folder ($tivo->folders()) {
for my $show ($folder->shows()) {
print $show->as_string(), "\n";
}
}
DESCRPTION
Net::TiVo::Show
provides an object-oriented interface to an XML description of a TiVo show. It provides the necessary accessors to read the XML data.
METHODS
- station_name()
-
Returns TiVo's name for this station, i.e. FoodTV is FOOD.
- name()
-
Returns the name of this show.
- episode()
-
Returns the title of this show.
- episode_num()
-
Returns the episode number of the show.
- content_type()
-
Returns the content type of this show in MIME format.
- capture_date()
-
Returns the date this show was recorded in seconds since the epoch.
- format()
-
Returns the source format of this show.
- high_definition()
-
Returns Yes if the show was recorded in high definition, or No if it was not.
- size()
-
Returns the size of this show in bytes.
- channel()
-
Returns the channel this show was recorded on.
- tuner()
-
Returns the number of tuner used to record the show.
- duration()
-
Returns the duration of this show in milliseconds.
- description()
-
Returns the description of this show.
- program_id()
-
Returns a hexadecimal string containing the program id.
- series_id()
-
Returns a hexadecimal string containing the series id.
- url()
-
Returns the url of this show. This information can be used to download the episode from TiVo to machine.
- as_string()
-
Returns a pretty print of the this show's information, including title, episode title, description, duration in minutes, and url.
SEE ALSO
AUTHOR
Christopher Boumenot, <boumenot@gmail.com>