Gathering extended data with XMLTV?
Posted: Sat Nov 17, 2007 9:16 pm
I've been digging through xmltv.pm and associated modules, and can't find the answer I was. I know it's probably obvious. . .
I'm capturing the data using xmltv (xmltv-0.5.49) and that's working fine, returning a XML file. (love XMLTV).
However, there's a LOT of information in there I'd like to reference/extract that I can't figure out how. (not a perl whiz, don't even play one on tv).
I'm using:
my ($encoding, $credits, $ch, $progs) = @{XMLTV::parsefiles($parms{infile})};
foreach (summarize($ch, $progs)) {
my ($time_start, $time_end, $pgm_name, $pgm_title, $channel_number ) = @$_;
}
which is working fine, but that only gives me the obvious. I'd like to get the descriptions, the rating, and the categories out of the XML as well (and really, everything else), but when I look through summarize() it doesn't return anything else. Besides having to hack summarize.pm, how can I get that information in the same general format? (channel, start, stop, name, etc).
Thanks
Rick
I'm capturing the data using xmltv (xmltv-0.5.49) and that's working fine, returning a XML file. (love XMLTV).
However, there's a LOT of information in there I'd like to reference/extract that I can't figure out how. (not a perl whiz, don't even play one on tv).
I'm using:
my ($encoding, $credits, $ch, $progs) = @{XMLTV::parsefiles($parms{infile})};
foreach (summarize($ch, $progs)) {
my ($time_start, $time_end, $pgm_name, $pgm_title, $channel_number ) = @$_;
}
which is working fine, but that only gives me the obvious. I'd like to get the descriptions, the rating, and the categories out of the XML as well (and really, everything else), but when I look through summarize() it doesn't return anything else. Besides having to hack summarize.pm, how can I get that information in the same general format? (channel, start, stop, name, etc).
Thanks
Rick