[mythtv] [PATCH] Control duplicates by channel ID

David Engel david at istwok.net
Tue Aug 7 14:26:55 UTC 2007


On Mon, Aug 06, 2007 at 09:54:08PM -0500, David Shay wrote:
> Well, I tried that, or at least what I thought you meant, but I most
> have done something terribly wrong.  I added a call to AddHistory in
> PruneRedunants, right before the second call to delete.  That added
> entries to oldrecorded for future programs, though, which I don't
> think is what was intended.  This must need to be qualified more to
> work.  These records then screwed up the scheduler, and put the whole
> thing into a downward spiral...

Yes, the AddHistory should also be qualified by 

   nextRecording->recstartts <= schedTime

I would have made the same mistake.

> Is the work in FromProgram all in the name of getting accurate
> statuses on past programs in the EPG, or is that needed for some other
> purpose?

Yes, only to get accurate status.  Previously, the scheduler kept a
day's worth of state in memory for past recordings.  That worked fine
as long as the scheduler stayed up.  If the master backend crash or
was restarted, however, all of that state was lost and the EPG would
display things as if they had never been scheduled.

David
-- 
David Engel
david at istwok.net


More information about the mythtv-dev mailing list