[mythtv] [patch] duplicate checking using programid
Bruce Markey
bjm at lvcm.com
Sun May 9 03:54:17 EDT 2004
Dave Alden wrote:
> Hi,
>
> On Thu, May 06, 2004 at 07:41:36PM -0500, David Engel wrote:
>
>>I'm thinking the Progid check should be implicit with anything except
>>"None".
>
>
> That makes sense. I've modified my patch so that if you are doing
> any type of duplicate checking, and the programid field is not blank,
> then it first checks against the programid. I've also modified the
> advanced recording screen text to mention programid (for example:
> "Programid; Subtitle" if any of your xmltvgrabbers (from the videosource
> table) are set to 'datadirect'. I've attached a new (gzip'ed) patch.
Hi, Dave. I had taken a first stab at this also and got about
as far as you did before I ran into a problem that I know about
but had forgotten. That is that there is a problem with the way
they handle generic episodes of series. I started working
again from your patch (nicely done by the way, you caught some
things I'd missed before) to at least begin storing the seriesids
and programids.
The good news is that handling the duplicate methods is even easier
than you thought. If the method is None, there is no match. If
both items being checked have IDs, then match based on IDs else
fall through to the string matching methods. No new ID based
methods are needed and it is perfectly compatible with other
grabbers.
This logic is especially important for checking against oldrecorded.
If a show has an ID match in oldrecorded then it is a dup. If not then
the string matches should be tried to see if it matches a pre-DD show
in the table.
The bad news is that duplicate matching is harder than it should
be. Movies and Specials have one episode in the format MVXXXXXX0000
or SHXXXXXX0000. Once you find one then the rest are dups. Episodes
of a series are EPXXXXXX1234. Again, each match is a dup. The problem
is that if the station doesn't declare which episode of a series
will be shown, they use a generic description ending with 0000. This
would be easy to handle if they used "EPXXXXXX0000" but they don't.
They use SHXXXXXX0000 which is the same as specials. If that format
is used for a generic episode, each showing may be different so it
should be assumed that they are all different and need to be recorded.
If it is a special, they are all the same and should only be recorded
once.
I'm not quite sure how to best handle this at this point. There is
a fairly sparse doc XTVDSchemaDefinition.pdf that does little more
than verify that they do this with no clear hint as to how specials
and generic episodes would be distinguished.
Anyway, I've included the seriesids in proginfo and the recorded
tables for future use. I imagine this will be helpful for
distinguishing M*A*S*H the movie from M*A*S*H the series. Also
matching "The Joe Schmo Show" with "Joe Schmo" and "Joe Schmo Show".
-- bjm
More information about the mythtv-dev
mailing list