#4 ParseDetail.pl has a bug when used with S3 HD

open
nobody
None
5
2007-11-17
2007-11-17
No

recordingQuality does not appear in the detail responses from the TiVo, so only one '|' appears in the results. As there are 13 and not the expected 14 '|', nothing appears in the program details.
Simply adding an additional | in the else statement fixes this.

--- before (current)
if ($show =~ m/<recordingQuality value="(.*?)">(.*?)<\/recordingQuality>/) {
$quality = "\L\u$2\E";
$output = $output . "$1|$quality|";
}
else {
$output = $output . "|";
}

--- after
if ($show =~ m/<recordingQuality value="(.*?)">(.*?)<\/recordingQuality>/) {
$quality = "\L\u$2\E";
$output = $output . "$1|$quality|";
}
else {
$output = $output . "||";
}

Discussion


Log in to post a comment.