<div dir="ltr">Hi all,<div><br></div><div>Been a user of MythTV for about 13 years I think, but never actually posted to the list before! Thanks to all the people who have helped this software happen.</div><div><br></div><div>I'm currently running 29+fixes via Mythbuntu PPA.</div><div><br></div><div>The outline is this - I have channel priority of +1 on my HD channels, so that recordings on my Freeview HD system here in the UK will normally prefer HD over SD (I do it this way because there are some UK channels - e.g. Channel 5 HD - that don't actually mark their recordings as HD using the EIT data).<br></div><div><br></div><div>I'm a bit mean though, because I want to prefer SD for the millions of kids programs we record. So, I've achieved this easily enough with a -2 priority on the following custom rule:</div><div><br></div><div>channel.callsign LIKE '% HD' AND RECTABLE.recgroupid = 4<br></div><div><br></div><div>It works absolutely fine - but I wondered if there's a more complex SQL query that could reference the recording group name, rather than the ID that I pulled from the database?</div><div><br></div><div>I tried the following:</div><div><br></div><div>channel.callsign LIKE '% HD' AND (SELECT recgroups.recgroup FROM recgroups INNER JOIN RECTABLE ON RECTABLE.recgroupid = recgroups.recgroupid) = 'Childrens Programmes'<br></div><div><br></div><div>But the results from the 'Test' function just tells me that childrens programmes will be recorded in HD.</div><div><br></div><div>Any help is much appreciated!</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>Will</div></div>