<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 6, 2014 at 5:36 PM, John P Poet <span dir="ltr">&lt;<a href="mailto:jppoet@gmail.com" target="_blank">jppoet@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class=""><div class="gmail_quote">On Mon, Oct 6, 2014 at 2:25 PM, Ian Evans <span dir="ltr">&lt;<a href="mailto:dheianevans@gmail.com" target="_blank">dheianevans@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">First off, I&#39;d like to thank Hika, Stephen and Nicolas (and anyone else who&#39;ll be jumping in) for looking at this. The fact that we can even toss this around shows how great MythTV is as compared to the STBs offered by the cable and sat companies.<br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">I guess it&#39;s really an exercise in laziness. :-) I could just have a rule for the backup newscast set at a lower priority, but I like to keep my conflict list free of priority conflicts (I only occasionally get them) so that when I look I see the real conflict choices between two classic movies or docs.<br><br></div><div class="gmail_extra">I see here (<a href="http://www.mythtv.org/wiki/Custom_Recording" target="_blank">http://www.mythtv.org/wiki/Custom_Recording</a>) that nested selects work. But do if/then/else phrases?<br><br></div><div class="gmail_extra">This is not valid sql or mythtv obviously but the logic might be:<br><br></div><div class="gmail_extra">IF (select title=&#39;CTV News&#39; and time=&#39;6pm&#39;) = 0 THEN schedule Global News at 6pm</div></div></blockquote></div><div class="gmail_extra"> </div></span><div class="gmail_extra">You can create a Custom Record Rule which uses multiple references to programs.  The &#39;Additional Tables&#39; just needs filled in to let it know that you want to base your rule off of another &quot;program&quot;.  See the attached screenshot for an example (hopefully you can read it, since I had to save it at an extremely low quality).</div><span class=""><font color="#888888"><div class="gmail_extra"><br></div></font></span><br></div></div></blockquote></div><br></div><div class="gmail_extra">Thanks for this example. Just wanted to clarify what is in the additional tables field. I&#39;m seeing &#39;, program pother&#39;. That is COMMA program SPACE pother<br><br></div><div class="gmail_extra">Is that right? My SQL ended up being:<br><br>program.title LIKE &#39;Evening News%&#39; AND HOUR(CONVERT_TZ(program.starttime,&#39;Etc/UTC&#39;, &#39;SYSTEM&#39;)) = 18 AND pother.chanid=1662 AND pother.starttime = program.starttime AND pother.title NOT LIKE &#39;CTV NEWS%&#39;<br><br></div><div class="gmail_extra">The rule didn&#39;t work, sadly, there&#39;s no 6pm CTV news next Sunday, so I&#39;m thinking I did the additional table line incorrectly. Also...is pother.chanid supposed to be the channel of the USUAL news or the BACKUP? I did it for the usual recording.<br><br></div><div class="gmail_extra">Thanks.<br></div></div>