<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 6, 2014 at 8:37 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-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">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></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span><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-width:1px;border-left-style:solid;border-left-color: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><font color="#888888"><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></font></span></div></div></blockquote><div><br></div></div></div><div>After my first attempt didn&#39;t work, I&#39;ve been staring at this all night. :-)<br><br></div><div>Ok, so the usual news show is called simply &quot;CTV News&quot; and airs on 1662 at 6<br><br></div><div>The backup news show is called simply &quot;Evening News&quot; and airs on 1665  at 6. <br><br>I tried changing the backup shows title match to an &#39;=&#39; and not a LIKE. Still no go. Scratching my head. Current SQL:<br><br>program.title = &#39;Evening News&#39; AND<span class=""><br>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></span></div></div></div></div></blockquote><div><br></div><div><br></div><div>Maybe:</div><div><br></div><div>&quot; program.title = &#39;Evening News&#39; AND program.chanid=1665 AND TIME(program.starttime,&#39;Etc/UTC&#39;, &#39;SYSTEM&#39;)) = &#39;18:00:00&#39; AND pother.title &lt;&gt; &#39;CTV News&#39; AND pother.chanid=1665 AND TIME(pother.starttime,&#39;Etc/UTC&#39;, &#39;SYSTEM&#39;)) = &#39;18:00:00&#39; &quot;</div><div><br></div><div>With Additional Tables set to: &quot;, program pother&quot;</div><div><br></div><div>Don&#39;t forget that leading comma in the Additional Tables.</div><div><br></div><div>I did test that sample the screenshot came from and it seemed to work.</div><div><br></div><div>John</div></div></div></div>