Thanks Bruce -- that is exactly what I&#39;m looking for!!!<br><br>[MjS]<br><br><div><span class="gmail_quote">On 1/2/07, <b class="gmail_sendername">Bruce Markey</b> &lt;<a href="mailto:bjm@lvcm.com">bjm@lvcm.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Mark J. Scheller wrote:<br>&gt; Is there a way with MythTV (running 0.20 from atrpms) to only schedule
<br>&gt; recordings over a certain length or perhaps starting at &#39;normal times&#39;?<br>&gt; I have found that some of the children&#39;s programming my 2 year old loves<br>&gt; so much to watch over and over and over again are coming up with a
<br>&gt; duration of only 5 minutes based on the download from zap2it.&nbsp;&nbsp;Watching<br>&gt; some of these 5 minute recordings have shown that they are actually a<br>&gt; chunk out of the middle of an actual program.<br>&gt;<br>
&gt; For now, we have gone through the list of upcoming recordings and<br>&gt; selected &#39;Don&#39;t Record&#39; for any of these programs that don&#39;t start on an<br>&gt; hour or half hour and this seems to be working.... but I&#39;d like to
<br>&gt; automate this process and not even schedule these snippets if possible.<br>&gt; Either &#39;30 minute minimum&#39; or &#39;start at :00 or :30 only&#39; kind of<br>&gt; scheduling rule is what would help.<br><br>
Both can be done. Pretty much anything is possible with Custom<br>Record rules.<br><br><a href="http://www.mythtv.org/docs/mythtv-HOWTO-12.html#ss12.5">http://www.mythtv.org/docs/mythtv-HOWTO-12.html#ss12.5</a><br><br>I&#39;m using &quot;Dirt&quot; for testing because it is on tonight, has
<br>showings that are and are not over an hour and do and do not<br>start on the hour.<br><br>mysql&gt; select starttime,endtime,title,subtitle from program where title = &#39;Dirt&#39; order by starttime;<br>+---------------------+---------------------+-------+----------+
<br>| starttime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | endtime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | title | subtitle |<br>+---------------------+---------------------+-------+----------+<br>| 2007-01-02 22:00:00 | 2007-01-02 23:02:00 | Dirt&nbsp;&nbsp;| Pilot&nbsp;&nbsp;&nbsp;&nbsp;|<br>| 2007-01-02 23:02:00 | 2007-01-03 00:04:00 | Dirt&nbsp;&nbsp;| Pilot&nbsp;&nbsp;&nbsp;&nbsp;|
<br>| 2007-01-03 01:04:00 | 2007-01-03 02:06:00 | Dirt&nbsp;&nbsp;| Pilot&nbsp;&nbsp;&nbsp;&nbsp;|<br>| 2007-01-05 23:00:00 | 2007-01-06 00:02:00 | Dirt&nbsp;&nbsp;| Pilot&nbsp;&nbsp;&nbsp;&nbsp;|<br>| 2007-01-07 22:00:00 | 2007-01-07 23:02:00 | Dirt&nbsp;&nbsp;| Pilot&nbsp;&nbsp;&nbsp;&nbsp;|<br>| 2007-01-09 22:00:00 | 2007-01-09 23:04:00 | Dirt&nbsp;&nbsp;| Blogan&nbsp;&nbsp; |
<br>| 2007-01-09 23:04:00 | 2007-01-10 00:07:00 | Dirt&nbsp;&nbsp;| Blogan&nbsp;&nbsp; |<br>| 2007-01-10 01:07:00 | 2007-01-10 02:10:00 | Dirt&nbsp;&nbsp;| Blogan&nbsp;&nbsp; |<br>| 2007-01-12 23:00:00 | 2007-01-13 00:00:00 | Dirt&nbsp;&nbsp;| Blogan&nbsp;&nbsp; |<br>| 2007-01-14 22:00:00 | 2007-01-14 23:00:00 | Dirt&nbsp;&nbsp;| Blogan&nbsp;&nbsp; |
<br>+---------------------+---------------------+-------+----------+<br><br>First, I want to find episode where the end time minus sixty<br>minutes is still more than the starttime:<br><br>Rule Name: Dirt over 60<br><br>program.title
 = &#39;Dirt&#39;<br>AND program.starttime &lt;<br>&nbsp;&nbsp;&nbsp;&nbsp;DATE_SUB(program.endtime, INTERVAL 60 MINUTE)<br><br>This does not match the last two showings which are exactly<br>one hour and don&#39;t qualify.<br><br>For you, you need a start time less than or equal to the end
<br>minus thirty. You may want to use this several times. I&#39;d<br>suggest making a &quot;Stored example&quot; so you can add it to the list<br>of examples and just click to add it again and again. Enter this<br>on the custom page:
<br><br>Rule Name: 30 minute minimum<br><br>program.starttime &lt;=<br>&nbsp;&nbsp;&nbsp;&nbsp;DATE_SUB(program.endtime, INTERVAL 30 MINUTE)<br><br>Click the &quot;Store&quot; button then &#39;Store &quot;30 minute minimum&quot;&#39;.<br>This will now be the last item in the list of pre-set examples.
<br>So now let&#39;s say you want to record &quot;Clifford the Big Red Dog&quot;<br>when it is at least 30 minutes.<br><br>- Find it in the listings and press &quot;E&quot;dit. This will bring up the<br>custom editor with &quot;Clifford the Big Red Dog&quot; already filled in.
<br><br>- Press the left arrow to find &quot;30 minute minimum (stored example)&quot;<br>then click &quot;Add this example clause&quot;.<br><br>- Click &quot;Test&quot; to verify that it matches the right showings then<br>
ESC to get back to the custom page.<br><br>- Click &quot;Record&quot; to see the recording options page and set your<br>options just like any other rule.<br><br><br>The other approach you asked about was showings that start on
<br>the hour and half hour. You can make this a reusable example<br>clause too:<br><br>Rule Name: On half hours<br><br>(MINUTE(program.starttime) = 0<br>&nbsp;&nbsp;&nbsp;&nbsp; OR MINUTE(program.starttime) = 30)<br><br>Again, click &quot;Store&quot; to add this to your list so you can simply
<br>click to use this in the future.<br><br>Hope this helps,<br><br>--&nbsp;&nbsp;bjm<br><br><br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org
</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div><br>