Would it make sense to have mythfilldatabase generate a synthetic program ID for listings entries that don't have a programID or that have one of the known generic programIDs?
The synthetic programid would be something like a hash of the things used for duplicate detection today, ie a hash of title, or title/subtitle or possibly seriesid & syndicatedepisodenumber, though I presume those aren't likely to existing without a programid. This would simplify and speed up the duplicate checking algorithms, and other code could be simpler if it could be always sure there was a program id, though it would take out the ability to do per-show setting of duplicate detection. You could not sort on these hashed program ids. The field in the database would probably want to be expanded beyond 12 characters, since the first 2 would remain special and 10 6 bit values is 60 bits, which is on the fringe of what you want for hash uniqueness. Thoughts on whether this makes sense?
_______________________________________________ mythtv-dev mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
