File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments