[mythtv-users] Recording relative to previous program

John P Poet jppoet at gmail.com
Sun Aug 17 20:49:27 UTC 2014


On Sun, Aug 17, 2014 at 1:20 PM, Rob Jensen <bertaboy at gmail.com> wrote:

> Apologies if this gets asked every sports season, but I'm apparently not
> finding the proper phrases if it does....
>
> Does anyone know if it's possible to create recording rules which are
> dynamic relative to previous programs?  For example
>
>    - Adding an extra hour if a program follows a sports event, or
>    - Adding an extra 30 minutes if a sports program was broadcast within
>    61 minutes to program's scheduled start time
>
>
> Thanks,
> Rob
>

David Engel came up with this power rule to handle back-to-back NFL
football games:

MariaDB [mythconverg]> select type,title,subtitle,description,endoffset
from record where title like "NFL%";


+------+-------------------------------------+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
| type | title                               | subtitle        |
description

                       | endoffset |
+------+-------------------------------------+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+
|    4 | NFL Football [early] (Power Search) | , program pnext |
program.category = 'Sports event' AND program.title = 'NFL Football' AND
pnext.title = 'NFL Football' AND program.chanid = pnext.chanid AND
program.endtime = pnext.starttime  |         0 |
|    4 | NFL Football [late] (Power Search)  | , program pnext |
program.category = 'Sports event' AND program.title = 'NFL Football' AND
pnext.title <> 'NFL Football' AND program.chanid = pnext.chanid AND
program.endtime = pnext.starttime |        58 |
+------+-------------------------------------+-----------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------+

This adds 58 minutes to the endoffset, if the next program is not also "NFL
Football".
You can do this using the "Custom Record" screen in mythfrontend, put

"program.category = 'Sports event' AND program.title = 'NFL Football' AND
pnext.title <> 'NFL Football' AND program.chanid = pnext.chanid AND
program.endtime = pnext.starttime"

as the power rule, and ", program pnext" in the 'Additional Tables' box.

While this does not answer your question exactly, it should be a good
example to get you started.


John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140817/9b5582e9/attachment.html>


More information about the mythtv-users mailing list