Skip to content

Commit

Permalink
Make deletes work again
Browse files Browse the repository at this point in the history
  • Loading branch information
ex-nerd committed Mar 13, 2013
1 parent a07e412 commit 223ba1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/tv/recorded.php
Expand Up @@ -26,7 +26,7 @@
if (($_SESSION['recorded_title'] == $row[0]) || ($_SESSION['recorded_title'] == ''))
$prev_row++;
// This row isn't the one we're looking for
if ($row[6] != $_REQUEST['chanid'] || $row[25] != $_REQUEST['starttime'])
if ($row[7] != $_REQUEST['chanid'] || $row[26] != $_REQUEST['starttime'])
continue;
// Delete the recording
MythBackend::find()->sendCommand(array($backendstr, implode(MythBackend::$backend_separator, $row), '0'));
Expand All @@ -39,7 +39,7 @@
if (isset($_REQUEST['ajax'])) {
header('Content-Type: application/json');
echo json_encode(array('id' => $_REQUEST['id'],
'file' => $_REQUEST['file']));
'file' => $_REQUEST['file']));
exit;
}
// No need to scan the rest of the items, so leave early
Expand Down Expand Up @@ -71,7 +71,7 @@
// Skip the offset
if ($key === 'offset') // WHY IN THE WORLD DOES 0 == 'offset'?!?!? so we use ===
continue;
// Get the length (267== recendts; 26 == recstartts)
// Get the length (27 == recendts; 26 == recstartts)
$length = $record[27] - $record[26];
// Keep track of the total time and disk space used (9 == filesize)
$Total_Time += $length;
Expand Down

0 comments on commit 223ba1b

Please sign in to comment.