#!/usr/bin/perl -w
#
# Parses the backend log file and includes information on which encoder was used to record shows.
my ($time, $title, $subtitle, $chanid, $cardid, $sourceid);
my $index = 0;
sub print_text
{
print "$time - $title";
print ": $subtitle" if ($subtitle);
print "\n";
print " - Encoder ID: $cardid\n";
print " - Video Source ID: $sourceid\n";
print " - Channel ID: $chanid\n";
}
sub print_xml
{
print "$time - $title";
print ": $subtitle" if ($subtitle);
print " - Encoder: $cardid
".
"$title $time
";
print "$subtitle
" if ($subtitle);
print "
Channel ID: $chanid
Encoder ID: $cardid
".
"Video Source ID: $sourceid