|
71 | 71 | // Skip the offset
|
72 | 72 | if ($key === 'offset') // WHY IN THE WORLD DOES 0 == 'offset'?!?!? so we use ===
|
73 | 73 | 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]; |
76 | 76 | // Keep track of the total time and disk space used (9 == filesize)
|
77 | 77 | $Total_Time += $length;
|
78 | 78 | if (function_exists('gmp_add')) {
|
79 | 79 | // 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])); |
81 | 81 | }
|
82 | 82 | else {
|
83 | 83 | // This is inaccurate, but it's the best we can get without GMP.
|
84 |
| - $Total_Used += $record[11]; |
| 84 | + $Total_Used += $record[12]; |
85 | 85 | }
|
86 | 86 | // keep track of their names and how many episodes we have recorded
|
87 | 87 | $Total_Programs++;
|
88 | 88 | $Groups[$record[29]]++;
|
89 | 89 | // 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')) |
91 | 91 | $Program_Titles[$record[0]]++;
|
92 | 92 | // Skip files with no chanid
|
93 | 93 | if (!$record[6])
|
94 | 94 | continue;
|
95 | 95 | // Skip programs the user doesn't want to look at
|
96 | 96 | if ($_REQUEST['title'] && $_REQUEST['title'] != $record[0])
|
97 | 97 | continue;
|
98 |
| - if ($_REQUEST['recgroup'] && $_REQUEST['recgroup'] != $record[28]) |
| 98 | + if ($_REQUEST['recgroup'] && $_REQUEST['recgroup'] != $record[29]) |
99 | 99 | continue;
|
100 | 100 | // 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')) |
102 | 102 | continue;
|
103 | 103 | // Make sure that everything we're dealing with is an array
|
104 | 104 | if (!is_array($Programs[$record[0]]))
|
|
0 commit comments