Skip to content

Commit f8b9ded

Browse files
committed
Fix display of recorded shows
A few more mythproto array index values that didn't get updated the other day.
1 parent 3cce0fb commit f8b9ded

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

modules/tv/recorded.php

100644100755
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,34 +71,34 @@
7171
// Skip the offset
7272
if ($key === 'offset') // WHY IN THE WORLD DOES 0 == 'offset'?!?!? so we use ===
7373
continue;
74-
// Get the length (26 == recendts; 25 == recstartts)
75-
$length = $record[26] - $record[25];
74+
// Get the length (267== recendts; 26 == recstartts)
75+
$length = $record[27] - $record[26];
7676
// Keep track of the total time and disk space used (9 == filesize)
7777
$Total_Time += $length;
7878
if (function_exists('gmp_add')) {
7979
// GMP functions should work better with 64 bit numbers.
80-
$Total_Used = gmp_strval(gmp_add($Total_Used, $record[11]));
80+
$Total_Used = gmp_strval(gmp_add($Total_Used, $record[12]));
8181
}
8282
else {
8383
// This is inaccurate, but it's the best we can get without GMP.
84-
$Total_Used += $record[11];
84+
$Total_Used += $record[12];
8585
}
8686
// keep track of their names and how many episodes we have recorded
8787
$Total_Programs++;
8888
$Groups[$record[29]]++;
8989
// Hide LiveTV and Deleted recordings from the title list
90-
if (($_REQUEST['recgroup'] && $_REQUEST['recgroup'] == $record[28]) || (!$_REQUEST['recgroup'] && $record[28] != 'LiveTV' && $record[28] != 'Deleted'))
90+
if (($_REQUEST['recgroup'] && $_REQUEST['recgroup'] == $record[29]) || (!$_REQUEST['recgroup'] && $record[29] != 'LiveTV' && $record[29] != 'Deleted'))
9191
$Program_Titles[$record[0]]++;
9292
// Skip files with no chanid
9393
if (!$record[6])
9494
continue;
9595
// Skip programs the user doesn't want to look at
9696
if ($_REQUEST['title'] && $_REQUEST['title'] != $record[0])
9797
continue;
98-
if ($_REQUEST['recgroup'] && $_REQUEST['recgroup'] != $record[28])
98+
if ($_REQUEST['recgroup'] && $_REQUEST['recgroup'] != $record[29])
9999
continue;
100100
// Hide LiveTV recordings from the default view
101-
if (empty($_REQUEST['recgroup']) && ($record[28] == 'LiveTV' || $record[28] == 'Deleted'))
101+
if (empty($_REQUEST['recgroup']) && ($record[29] == 'LiveTV' || $record[29] == 'Deleted'))
102102
continue;
103103
// Make sure that everything we're dealing with is an array
104104
if (!is_array($Programs[$record[0]]))

skins/default/tv_recorded.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@
125125
/* a class for the the cells containing recored programs in recorded_programs.php */
126126
.recorded { background-color: #506080; }
127127

128+
.recorded .x-originalairdate {
129+
white-space: nowrap;
130+
}
131+
128132
.recorded .x-progflags img {
129133
padding: .3em;
130134
}

0 commit comments

Comments
 (0)