[mythtv-commits] Ticket #6438: maxEpisodes is not respected with back-to-back recordings

MythTV mythtv at cvs.mythtv.org
Wed Apr 8 19:04:56 UTC 2009

#6438: maxEpisodes is not respected with back-to-back recordings
 Reporter:  gnome42              |       Owner:  bjm 
     Type:  defect               |      Status:  new 
 Priority:  minor                |   Milestone:  0.22
Component:  MythTV - Scheduling  |     Version:  head
 Severity:  medium               |     Mlocked:  0   
 When there are back-to-back scheduled recordings and maxEpisodes is
 set and maxNewest is not, maxEpisodes is not respected.


 o Record all rule for Jeopardy!

 o maxEpisodes==2 maxNewest==0

 o Four back-to-back episodes of Jeopardy!

 In this scenario all four showings will be recorded and the
 autoexpirer will dutifully delete the oldest episode as each
 episode is recorded.

 This is due to the maxEpisodes query in the scheduler not counting
 the in progress recording in the max epsiode count.

 The attached patch corrects this by adjusting the query to count
 in progress recordings in the max episodes count.

 It looks safe and does the job but I could be missing something so
 I'm posting here for further review.

 Refs #3196

 Thanks to Sphery for digging up the background info on this.

Ticket URL: <http://svn.mythtv.org/trac/ticket/6438>
MythTV <http://www.mythtv.org/>

More information about the mythtv-commits mailing list