Thanks Bruce -- that is exactly what I'm looking for!!!<br><br>[MjS]<br><br><div><span class="gmail_quote">On 1/2/07, <b class="gmail_sendername">Bruce Markey</b> <<a href="mailto:bjm@lvcm.com">bjm@lvcm.com</a>> 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>> Is there a way with MythTV (running 0.20 from atrpms) to only schedule
<br>> recordings over a certain length or perhaps starting at 'normal times'?<br>> I have found that some of the children's programming my 2 year old loves<br>> so much to watch over and over and over again are coming up with a
<br>> duration of only 5 minutes based on the download from zap2it. Watching<br>> some of these 5 minute recordings have shown that they are actually a<br>> chunk out of the middle of an actual program.<br>><br>
> For now, we have gone through the list of upcoming recordings and<br>> selected 'Don't Record' for any of these programs that don't start on an<br>> hour or half hour and this seems to be working.... but I'd like to
<br>> automate this process and not even schedule these snippets if possible.<br>> Either '30 minute minimum' or 'start at :00 or :30 only' kind of<br>> 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'm using "Dirt" 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> select starttime,endtime,title,subtitle from program where title = 'Dirt' order by starttime;<br>+---------------------+---------------------+-------+----------+
<br>| starttime | endtime | title | subtitle |<br>+---------------------+---------------------+-------+----------+<br>| 2007-01-02 22:00:00 | 2007-01-02 23:02:00 | Dirt | Pilot |<br>| 2007-01-02 23:02:00 | 2007-01-03 00:04:00 | Dirt | Pilot |
<br>| 2007-01-03 01:04:00 | 2007-01-03 02:06:00 | Dirt | Pilot |<br>| 2007-01-05 23:00:00 | 2007-01-06 00:02:00 | Dirt | Pilot |<br>| 2007-01-07 22:00:00 | 2007-01-07 23:02:00 | Dirt | Pilot |<br>| 2007-01-09 22:00:00 | 2007-01-09 23:04:00 | Dirt | Blogan |
<br>| 2007-01-09 23:04:00 | 2007-01-10 00:07:00 | Dirt | Blogan |<br>| 2007-01-10 01:07:00 | 2007-01-10 02:10:00 | Dirt | Blogan |<br>| 2007-01-12 23:00:00 | 2007-01-13 00:00:00 | Dirt | Blogan |<br>| 2007-01-14 22:00:00 | 2007-01-14 23:00:00 | Dirt | Blogan |
<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
= 'Dirt'<br>AND program.starttime <<br> 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'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'd<br>suggest making a "Stored example" 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 <=<br> DATE_SUB(program.endtime, INTERVAL 30 MINUTE)<br><br>Click the "Store" button then 'Store "30 minute minimum"'.<br>This will now be the last item in the list of pre-set examples.
<br>So now let's say you want to record "Clifford the Big Red Dog"<br>when it is at least 30 minutes.<br><br>- Find it in the listings and press "E"dit. This will bring up the<br>custom editor with "Clifford the Big Red Dog" already filled in.
<br><br>- Press the left arrow to find "30 minute minimum (stored example)"<br>then click "Add this example clause".<br><br>- Click "Test" to verify that it matches the right showings then<br>
ESC to get back to the custom page.<br><br>- Click "Record" 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> OR MINUTE(program.starttime) = 30)<br><br>Again, click "Store" 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>-- 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>