Skip to content

Commit 8fec5ee

Browse files
committed
minor cleanup
1 parent 5cb04f8 commit 8fec5ee

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

trunk/mythtv/recordings.pm

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,17 @@ package mythtv::recordings;
102102
while (my ($type, $mark) = $c_sh->fetchrow_array) {
103103
if ($type == 1) {
104104
$info{'cutlist'} .= " $mark";
105-
$last_mark = $mark;
105+
$last_mark = $mark;
106106
}
107107
elsif ($type == 0) {
108108
$info{'cutlist'} .= "-$mark";
109-
$cutlist_frames += $mark - $last_mark;
109+
$cutlist_frames += $mark - $last_mark;
110110
}
111111
}
112+
if ($type && $type == 1) {
113+
$info{'cutlist'} .= '-'.$self->{'last_frame'};
114+
$cutlist_frames += $self->{'last_frame'} - $last_mark;
115+
}
112116
# Skip shows without cutlists?
113117
next if (arg('require_cutlist') && !$info{'cutlist'});
114118
# Pull out GOP info for mpeg files
@@ -145,6 +149,7 @@ package mythtv::recordings;
145149
# Counter
146150
$num_shows++;
147151
}
152+
$c_sh->finish();
148153
$sh->finish();
149154
print "\n";
150155

0 commit comments

Comments
 (0)