[mythtv-users] if (x!=rerun) {record}

Bruce Markey bjm at lvcm.com
Fri Oct 21 15:30:13 EDT 2005


Derek Battams wrote:
> Quoting Bruce Markey <bjm at lvcm.com>:
> 
>> Note: the rule for new episodes has to take precedence. The more
>> specific type wins (Single beats Channel beats All) but in this
>> case they are both All. Therefore the rule for new episodes needs
>> to be created first to win the tie breaker for older rule. See:
>> http://www.mythtv.org/docs/mythtv-HOWTO-11.html#ss11.7 the last
>> item under "Scheduling decisions".
> 
> More for my own knowledge and understanding, but doesn't the assigned 
> priority (-1 for syndication and +2 for new episodes) ensure that these 
> rules will never tie?  Therefore, it doesn't really matter which order 
> you add them, even though doing it this way certainly won't hurt.

There are two different issues. There is the normal question of
which of two different titles has higher priority and thus which
title gets recorded. However, in this case we have two rules that
match the same showing of the same title. Here the question is
which rule controls that showing.

For instance, say you have an All rule for a favorite show with +6.
Due to circumstance you want it to record on card 2 tonight and can
do so by lowering the priority to -2 so you add an override. If
the controlling rule was chosen by priority, the override would lose.
An override applies to a single showing of a program that is also
controlled by a recurring rule. The override must always win precedence
in order to work. The same would be true if you set a kWeekslotRecord
rule for one showing where you knew the time was always off by a few
minutes and a kChannelRecord for all other showings. The weekslot
rule needs to control that specific day and time over the more general
rule regardless of any of the recording parameters.

In the code, this decision is made by RecTypePriority().

--  bjm



More information about the mythtv-users mailing list