[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
Mon Mar 12 21:23:24 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):

 After looking through the 0.20 source, it appears that
 AutoExpire::ExpireEpisodesOverMax is not testing maxnewest > 0 in it's
 checks.
     query.prepare("SELECT recordid, maxepisodes, title "
                   "FROM record WHERE maxepisodes > 0 "
                   "ORDER BY recordid ASC, maxepisodes DESC");

 should instead be:

     query.prepare("SELECT recordid, maxepisodes, title "
                   "FROM record WHERE maxepisodes > 0 AND maxnewest > 0 "
                   "ORDER BY recordid ASC, maxepisodes DESC");

 This looks like it should fix the autoexpire problem.  There may or may
 not still be an issue with the backend continuing to record new episodes
 though.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3196#comment:2>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list