[mythtv] [PATCH] Control duplicates by channel ID

David Engel david at istwok.net
Thu Aug 9 18:54:50 UTC 2007

On Wed, Aug 08, 2007 at 11:52:29PM -0500, David Shay wrote:
> I'm not ready to give up yet (because I REALLY want to use this...I
> was recording HD and SDTV for a while and had to keep adding override

I'm not asking you to give.  I was mainly throwing something out there
in hopes of sparking a new idea.

> entries to make it work, since I still wanted to take advantage of
> duplicate detection).  From my perspective, if we can figure out how
> to get all relevant entries into oldrecorded, I think the rest will
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (* see below)

> How about inserting a new function when the recording starts that
> inserts the appropriate additional rows.  It could find other showings
> on at the same time, check their current status in oldrecorded, and
> [...]

This all hinges on changing oldrecorded to index on chanid instead of
callsign.  If that change is made, I think the rest of the scheduler
needs to also change to fundamentally group things by chanid.
Anything less will be madness, IMO.

(*) This might have sparked one of those ideas.  Instead of changing
oldrecorded to match our special case data, let's change our special
case data to use the existing oldrecorded but still achieve the
desired result.  My local NBC affiliate is KXAS and shows up as
chanids 1005, 3101 and 3131 for me.  What if for these special rules,
and only these special rules, the scheduler saw callsigns like
"KXAS/1005", "KXAS/3101" and "KXAS/3131" for the respective chanids
instead of them all being the same "KXAS"?  Voila, the indexing
problem on oldrecorded goes away.

David Engel
david at istwok.net

More information about the mythtv-dev mailing list