Permalink
Browse files

use same query in Program.php and recordinginfo.cpp

the old code only matched via the triple title/subtitle/description
while the matching in libmythtv also uses programid etc

Fixes #10375
  • Loading branch information...
dekarl committed Aug 4, 2012
1 parent 823694f commit 988923a471926b2e70dd82445836011694a2a0b8
Showing with 8 additions and 2 deletions.
  1. +8 −2 modules/tv/classes/Program.php
@@ -581,10 +581,16 @@ public function rec_forget_old() {
// forgotten, so we have to search for matching rows
$sh = $db->query('SELECT *
FROM oldrecorded
WHERE title=? AND subtitle=? AND description=? AND future = 0',
WHERE title = ? AND
((programid = '' AND subtitle = ?
AND description = ?) OR
(programid <> '' AND programid = ?) OR
(findid <> 0 AND findid = ?))',
$this->title,
$this->subtitle,
$this->description);
$this->description,
$this->programid,
$this->findid);
while ($row = $sh->fetch_assoc()) {
$prog =& new Program($row);
MythBackend::find()->sendCommand(array('FORGET_RECORDING', $prog->backend_row(), '0'));

0 comments on commit 988923a

Please sign in to comment.