[mythtv-users] Custom recording syntax

Fred Squires fsquires at gmail.com
Tue Sep 26 13:51:15 UTC 2006


On 9/26/06, Michael Lynch <lynchmv at gmail.com> wrote:
>
> I have a custom recording to schedule any college football games with
> Alabama in the subtitle.  The custom rule is:
>
> program.title = "college football"
> and program.subtitle like "alabama at %"
> or program.subtitle like "% at alabama"
>
> This query finds the correct football games, but I just noticed that
> it also found a college volleyball game.  The volleyball game info is:
>
> title = "Women's College Volleyball"
> subtitle = "Arkansas at Alabama"
>
> It is apparent that the game was scheduled b/c of the subtitle.  My
> question is how should I go about using parenthesis to make sure
> program.title is matched and one of the program.subtitle strings are
> matched?  I have already deleted the custom schedule and recreated it
> with parenthesis around the whole rule like:
>
> (program.title = "college football"
> and program.subtitle like "alabama at %"
> or program.subtitle like "% at alabama")
>
> That didn't make any difference, the volleyball game still got
> scheduled.  Any ideas?
>

I can't guarantee I'm right here but it would make more sense to use the
parens like this:

program.title = "college football"
and ( program.subtitle like "alabama at %"
or program.subtitle like "% at alabama" )

It looks like Myth is interpreting your original custom recording as well as
your second one like this:

( program.title = "college football"
and program.subtitle like "alabama at %" )
or program.subtitle like "% at alabama"

which makes sense to tell you the truth.

Fred

-- 
It was supposed to be so Easy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060926/71989a8a/attachment.htm 


More information about the mythtv-users mailing list