<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 11/18/2010 21:51, Her Him wrote:
    <blockquote cite="mid:154352.35256.qm@web113512.mail.gq1.yahoo.com"
      type="cite">
      <style type="text/css"><!-- DIV {margin:0px;} --></style>
      <div style="font-family: times new roman,new york,times,serif;
        font-size: 12pt;">
        <div>However while it does work to toggle between 5.1 and stereo
          it doesn't take effect until after I go back through 'General'
          setup and click all the way through finish.&nbsp; So for some
          reason even though the audio is set properly it doesn't honor
          that its changed until going back through the menu.<br>
        </div>
      </div>
    </blockquote>
    <br>
    Altered version...<br>
    <br>
    <blockquote cite="mid:154352.35256.qm@web113512.mail.gq1.yahoo.com"
      type="cite">
      <div style="font-family: times new roman,new york,times,serif;
        font-size: 12pt;">
        <div>#!/usr/bin/python<br>
          <br>
          from MythTV import MythBE<br>
          <br>
          be = MythBE()<br>
          db = be.db<br>
          hostname = db.gethostname()<br>
          <br>
          print 'Host: %s Max Channels:
          %s'%(hostname,mythtv.db.settings[hostname]['MaxChannels'])<br>
          <br>
          if db.settings[hostname]['MaxChannels']==u'2':<br>
          &nbsp;&nbsp;&nbsp; db.settings[hostname]['MaxChannels']=u'6'<br>
          elif db.settings[hostname]['MaxChannels']==u'6':<br>
          &nbsp;&nbsp;&nbsp; db.settings[hostname]['MaxChannels']=u'2'<br>
          <br>
          print 'Host: %s Max Channels:
          %s'%(hostname,mythtv.db.settings[hostname]['MaxChannels'])<br>
          <br>
        </div>
      </div>
      be.backendCommand('MESSAGE[]:[]CLEAR_SETTINGS_CACHE')<br>
    </blockquote>
    <br>
    That last command issues a CLEAR event, which then gets pushed
    through to all connected frontends and backends, informing the
    frontend to pull new settings from the database as needed.<br>
  </body>
</html>