[mythtv] Suggestion: Programming with patterns

Mike Beattie mike at ethernal.org
Thu Feb 26 17:42:31 EST 2004


On Wed, Feb 25, 2004 at 02:33:05PM -0800, Bruce Markey wrote:
> >It would be nice, if it would be possible, to program the scheduler with 
> >patterns.
> 
> Of course this has been suggested many times before and has
> even been discussed to the level of what needs to be done in
> the SQL queries. There would need to be several changes
> throughout the system to account for wildcard titles. I expect
> that this will happen someday but it hasn't actually been
> implemented yet.

The patch to make this work is *incredibly* small. (well, the one I wrote) -
I've only got it working with manual db edits, i.e., no GUI interface yet.
(still debating with myself about how to do this..)

One thing I won't mention, is how ugly it looks to patch MythWeb to support
this, since it has a disgusting amount of API access and direct access to
the backend/DB mixed in together..

> Anyway, if anyone would like to reply to emphasize how important
> this feature would be, you should probably attach a patch with
> a fully implemented version. Otherwise you are just preaching to
> the choir ;-).

I'll attach a patch once I get the GUI bit done... sadly RL stepped in the
way for a bit... next week should be good though.

It's important for me (and possibly other .nz folk), since the program
details we can get from the web are notoriously badly formatted. Things
like:

"Title Episode"
"Title: Episode"
"Part One: Title Episode"
"Part One Title"

are all possible.... (yes, sometimes it's right)

Anyway, back to your regular programming.
Mike.
-- 
Mike Beattie <mike at ethernal.org>                      ZL4TXK, IRLP Node 6184

         Artificial Intelligence is no match for Natural Stupidity.


More information about the mythtv-dev mailing list