[mythtv] [PATCH] Control duplicates by channel ID
David Shay
david at shay.net
Tue Aug 7 18:56:18 UTC 2007
On 8/7/07, David Engel <david at istwok.net> wrote:
> 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
After some more thought, I wondered if maybe the check should be a
call to IsSameTimeslot instead? I'll try some things out tonight.
>
> 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.
>
Is that status only used in the EPG, though, or where else might it be
of importance?
> David
> --
> David Engel
> david at istwok.net
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
More information about the mythtv-dev
mailing list