[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 21:52:47 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 cpinkham):
The patch above is not a complete fix. I had one in my tree already and
have posted on the list about this ticket.
Can you give the attached patch a try and see if it works correctly for
you? It should handle all cases, including cases where a single recording
is split up into multiple parts such as when the backend is restarted mid-
recording. This patch should handle everything the expirer does so they
are using the same logic.
I don't like the while loop in the patch just to count curEpisodes, but
off the top of my head, I can't think of any other way we can do this
inside a single MySQL v3.x compatible SQL statement.
maxepisodes.diff is attached.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3196#comment:6>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list