[mythtv-commits] Ticket #3196: Autoexpire and backend fail to heed maxnewest = 0, deletes old programs that shouldn't and records new ones
MythTV
mythtv at cvs.mythtv.org
Tue Mar 13 17:36:16 UTC 2007
#3196: Autoexpire and backend fail to heed maxnewest = 0, deletes old programs
that shouldn't and records new ones
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: cpinkham
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: 0.20
Severity: medium | Resolution:
-----------------------+----------------------------------------------------
Comment(by subbyz):
In Scheduler::AddNewRecords, it appears that the maxepisodes check is
using the title of the show rather than the recordid for checking the
limits. While the current way works for simple rules based on show title,
it doesn't work for other more complex custom rules.
Here is a modification to make it attribute all shows to the rule that
caused them to be recorded, based on the recordid rather than the title.
epicnt.prepare("SELECT count(*) FROM recorded "
"WHERE title = :TITLE AND duplicate <> 0;");
epicnt.bindValue(":TITLE", qtitle.utf8());
should instead be:
epicnt.prepare("SELECT count(*) FROM recorded "
"WHERE recordid = :RECID AND duplicate <> 0;");
epicnt.bindValue(":RECID", recid);
Haven't yet tested this, but seems like it should work.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3196#comment:4>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list