<?xml version="1.0" encoding="utf-8"?>
<config>
<!--
  <group human_label="Host Address Backend Setup" unique_label="server">
-->
  <group unique_label="server">
    <group human_label="Local Backend" unique_label="local_server">
      <setting
         value="BackendServerIP" default_data="127.0.0.1"
         setting_type="host" label="Local IP address"
         help_text="Enter the IP address of this machine.
                    Use an externally accessible address (ie, not 
                    127.0.0.1) if you are going to be running a frontend
                    on a different machine than this one."
         placeholder_text="Enter backend IP address"
         data_type="localipaddress" />
      <setting
         value="BackendServerIP6" default_data="::1"
         setting_type="host" label="Local IPv6 address"
         help_text="Enter the IP address of this machine.
                    Use an externally accessible address (ie, not 
                    ::1) if you are going to be running a frontend
                    on a different machine than this one."
         placeholder_text="Enter backend IPv6 address"
         data_type="localipaddress" />
      <setting
         value="BackendServerPort" default_data="6543"
         setting_type="host" label="Port"
         placeholder_text="Enter backend server port"
         help_text= "Unless you've got good reason, don't change this."
         data_type="integer_range"
         range_min="0" range_max="65535" />
      <setting
         value="BackendStatusPort" default_data="6544"
         setting_type="host" label="Status port"
         placeholder_text="Enter backend status port"
         help_text="Port on which the server will listen for
                    HTTP requests, including backend status and
                    MythXML requests."
         data_type="integer_range"
         range_min="0" range_max="65535" />
      <setting
         value="SecurityPin" default_data=""
         setting_type="host" label="Security PIN (required)"
         placeholder_text="Enter security PIN code"
         help_text="PIN code required for a frontend to connect
                    to the backend. Blank prevents all connections;
                    0000 allows any client to connect."
         data_type="string" />
    </group>
    <group human_label="Master Backend" unique_label="master_server">
      <setting
         value="MasterServerIP" default_data="127.0.0.1"
         setting_type="global" label="Master backend IP address"
         placeholder_text="Enter master server IP address"
         help_text="The IP address of the master backend server. All
                    frontend and non-master backend machines will connect
                    to this server. If you only have one backend,
                    this should be the same IP address as above."
         data_type="ipaddress" />
      <setting
         value="MasterServerPort" default_data="6543"
         setting_type="global" label="Port"
         help_text="Unless you've got good reason, don't change this."
         data_type="integer_range"
         range_min="0" range_max="65535" />
    </group>
    <group human_label="Locale Settings" unique_label="locale_settings">
      <setting
         value="TVFormat" default_data="ntsc"
         setting_type="global" label="TV format"
         help_text="The TV standard to use for viewing TV."
         data_type="tvformat" />
      <setting value="VbiFormat" default_data="ntsc"
               setting_type="global" label="VBI format"
               help_text="The VBI (Vertical Blanking Interval) is
                          used to carry Teletext or Closed Captioning data."
               data_type="select">
        <option display="None" data="none" />
        <option display="PAL teletext" data="pal" />
        <option display="NTSC closed caption" data="ntsc" />
      </setting>
      <setting value="FreqTable" default_data="us-cable"
               setting_type="global" label="Channel frequency table"
               help_text="Select the appropriate frequency table for
                          your system. If you have an antenna, use a 
                          '-bcast' frequency."
               data_type="frequency_table" />
      <setting value="TimeOffset" default_data=""
               setting_type="global" label="Your local time zone (for XMLTV)"
               help_text="Used if the XMLTV data comes from a different
                          time zone than your own and modifies the date and
                          time before insertion into the database. 'Auto' converts
                          the XMLTV time to local time using your computer's
                          time zone. 'None' ignores the XMLTV timezone,
                          interpreting times as local."
               data_type="select">
        <option display="None" data="none" />
        <option display="Auto" data="auto" />
        <option display="+0030" data="+0030" />
        <option display="+0100" data="+0100" />
        <option display="+0130" data="+0130" />
        <option display="+0200" data="+0200" />
        <option display="+0230" data="+0230" />
        <option display="+0300" data="+0300" />
        <option display="+0330" data="+0330" />
        <option display="+0400" data="+0400" />
        <option display="+0430" data="+0430" />
        <option display="+0500" data="+0500" />
        <option display="+0530" data="+0530" />
        <option display="+0600" data="+0600" />
        <option display="+0630" data="+0630" />
        <option display="+0700" data="+0700" />
        <option display="+0730" data="+0730" />
        <option display="+0800" data="+0800" />
        <option display="+0830" data="+0830" />
        <option display="+0900" data="+0900" />
        <option display="+0930" data="+0930" />
        <option display="+1000" data="+1000" />
        <option display="+1030" data="+1030" />
        <option display="+1100" data="+1100" />
        <option display="+1130" data="+1130" />
        <option display="+1200" data="+1200" />
        <option display="-1100" data="-1100" />
        <option display="-1030" data="-1030" />
        <option display="-1000" data="-1000" />
        <option display="-0930" data="-0930" />
        <option display="-0900" data="-0900" />
        <option display="-0830" data="-0830" />
        <option display="-0800" data="-0800" />
        <option display="-0730" data="-0730" />
        <option display="-0700" data="-0700" />
        <option display="-0630" data="-0630" />
        <option display="-0600" data="-0600" />
        <option display="-0530" data="-0530" />
        <option display="-0500" data="-0500" />
        <option display="-0430" data="-0430" />
        <option display="-0400" data="-0400" />
        <option display="-0330" data="-0330" />
        <option display="-0300" data="-0300" />
        <option display="-0230" data="-0230" />
        <option display="-0200" data="-0200" />
        <option display="-0130" data="-0130" />
        <option display="-0100" data="-0100" />
        <option display="-0030" data="-0030" />
      </setting>
    </group>
    <group human_label="Miscellaneous Settings"
           unique_label="miscellaneous_settings">
      <group human_label="File Management Settings"
             unique_label="file_management_settings">
        <setting
           value="MasterBackendOverride" default_data="1"
           setting_type="global" label="Master backend override"
           help_text="If enabled, the master backend will stream and
                      delete files if it finds them in a storage directory.
                      Useful if you are using a central storage location, like
                      a NFS share, and your slave backend isn't running."
           data_type="checkbox" />
        <setting
           value="DeletesFollowLinks" default_data="0"
           setting_type="global"
           label="Follow symbolic links when deleting files"
           help_text="If enabled, MythTV will follow symlinks when
                      recordings and related files are deleted, instead
                       of deleting the symlink and leaving the actual file."
           data_type="checkbox" />
        <setting
           value="TruncateDeletesSlowly" default_data="0"
           setting_type="global" label="Delete files slowly"
           help_text="Some filesystems use a lot of resources when
                      deleting large files. If enabled, this option
                      makes MythTV delete files slowly on this backend to
                      lessen the impact."
           data_type="checkbox" />
<!--
        <setting
           value="HDRingbufferSize" default_data="9400"
           setting_type="global" label="HD ringbuffer size (KB)"
           help_text="The HD device ringbuffer allows the
                      backend to weather moments of stress.
                      The larger the ringbuffer, the longer
                      the moments of stress can be. However,
                      setting the size too large can cause
                      swapping, which is detrimental."
           data_type="integer_select"
           range_min="4700" range_max="94000" step="4700" />
-->
        <setting
           value="StorageScheduler" default_data="BalancedFreeSpace"
           setting_type="global" label="Storage Group disk scheduler"
           help_text="This setting controls how the Storage Group
                      scheduling code will balance new recordings across
                      directories. 'Balanced Free Space' is the recommended
                      method for most users."
           data_type="select">
          <option display="Balanced free space" data="BalancedFreeSpace" />
          <option display="Balanced percent free space"
                  data="BalancedPercFreeSpace" />
          <option display="Balanced disk I/O" data="BalancedDiskIO" />
          <option display="Combination" data="Combination" />
        </setting>
      </group>
      <setting
         value="MiscStatusScript" default_data=""
         setting_type="global" label="Miscellaneous status application"
         placeholder_text="Enter miscellaneous status command"
         help_text="External application or script that outputs
                    extra information for inclusion in the
                    backend status page. See
                    http://www.mythtv.org/wiki/Miscellaneous_Status_Information"
         data_type="string" />
      <setting
         value="DisableAutomaticBackup" default_data="0"
         setting_type="global" label="Disable automatic database backup"
         help_text="If enabled, MythTV will not backup the
                    database before upgrades. You should
                    therefore have your own database backup
                    strategy in place."
         data_type="checkbox" />
      <setting
         value="DisableFirewireReset" default_data="0"
         setting_type="global" label="Disable FireWire reset"
         help_text="By default, MythTV resets the FireWire bus when a
                    FireWire recorder stops responding to commands. If
                    this causes problems, you can disable this behavior
                    here."
         data_type="checkbox" />
    </group>
    <group human_label="EIT Scanner Options"
           unique_label="eit_scanner_options">
<!--
      <setting
         value="EITTransportTimeout" default_data="5"
         setting_type="global" label="EIT transport timeout (minutes)"
         help_text="Number of minutes to wait for listings data on one
                    digital TV channel before checking for new listings
                    data on the next channel."
         data_type="integer_select"
         range_min="1" range_max="15" step="1" />
-->
      <setting
         value="EITCrawIdleStart" default_data="60"
         setting_type="global"
         label="Backend idle before EIT crawl (seconds)"
         help_text="The minimum number of seconds after a recorder
                    becomes idle to wait before MythTV begins
                    collecting EIT listings data."
         data_type="select">
        <option display="30" data="30" />
        <option display="60" data="60" />
        <option display="120" data="120" />
        <option display="300" data="300" />
        <option display="600" data="600" />
        <option display="1200" data="1200" />
        <option display="2400" data="2400" />
        <option display="3600" data="3600" />
        <option display="7200" data="7200" />
      </setting>
    </group>
    <group human_label="Shutdown/Wakeup Options"
           unique_label="shutdown_wakeup_options">
      <setting data_type="string" value="startupCommand"
               label="Startup command"
               default_data=""
               setting_type="global"
               placeholder_text="Enter startup command"
               help_text="This command is executed right after starting
                          the BE. As a parameter \'$status\' is replaced by either
                          \'auto\' if the machine was started automatically or
                          \'user\' if a user switched it on." />
      <setting data_type="checkbox" value="blockSDWUwithoutClient"
               label="Block shutdown before client connected"
               default_data="1"
               setting_type="global"
               help_text="If enabled, the automatic shutdown routine will
                          be disabled until a client connects." />
      <setting data_type="select" value="idleTimeoutSecs"
               label="Idle shutdown timeout (seconds)"
               default_data="0"
               setting_type="global"
               help_text="The amount of time the master backend idles
                         before it shuts down all other backends. Set
                         to 'Disabled' to disable automatic shutdown.">
        <option display="Disabled" data="0" />
        <option display="5" data="5" />
        <option display="15" data="15" />
        <option display="30" data="30" />
        <option display="60" data="60" />
        <option display="120" data="120" />
        <option display="300" data="300" />
        <option display="600" data="600" />
        <option display="1200" data="1200" />
      </setting>
      <setting data_type="select" value="idleWaitForRecordingTime"
               label="Max. wait for recording (minutes)"
               default_data="15"
               setting_type="global"
               help_text="The number of minutes the master backend waits
                          for a recording. If the backend is idle but a
                          recording starts within this time period, it
                          won't shut down.">
        <option display="5" data="5" />
        <option display="15" data="15" />
        <option display="30" data="30" />
        <option display="60" data="60" />
        <option display="120" data="120" />
        <option display="180" data="180" />
        <option display="240" data="240" />
        <option display="300" data="300" />
      </setting>
      <setting data_type="select" value="StartupSecsBeforeRecording"
               label="Startup before recording (seconds)"
               default_data="120"
               setting_type="global"
               help_text="The number of seconds the master backend
                          will be woken up before a recording starts.">
        <option display="5" data="5" />
        <option display="15" data="15" />
        <option display="30" data="30" />
        <option display="60" data="60" />
        <option display="120" data="120" />
        <option display="300" data="300" />
        <option display="600" data="600" />
        <option display="1200" data="1200" />
      </setting>
      <setting data_type="string" value="WakeupTimeFormat"
               label="Wakeup time format"
               default_data="hh:mm yyyy-MM-dd"
               setting_type="global"
               placeholder_text="Enter wakeup time format"
               help_text="The format of the time string passed to the
                          'Command to set wakeup time' as $time. See
                          QT::QDateTime.toString() for details. Set to
                          'time_t' for seconds since epoch." />
      <setting data_type="string" value="SetWakeuptimeCommand"
               label="Command to set wakeup time"
               default_data=""
               setting_type="global"
               placeholder_text="Enter wakeup time command"
               help_text="The command used to set the wakeup time (passed as
                          $time) for the master backend" />
      <setting data_type="string" value="ServerHaltCommand"
               label="Server halt command"
               default_data="sudo /sbin/halt -p"
               setting_type="global"
               placeholder_text="Enter backend halt command"
               help_text="The command used to halt the backends." />
      <setting data_type="string" value="preSDWUCheckCommand"
               label="Pre-shutdown-check command"
               default_data=""
               setting_type="global"
               placeholder_text="Enter pre-shutdown-check command"
               help_text="A command executed before the backend would
                          shutdown. The return value determines if
                          the backend can shutdown. 0 - yes,
                          1 - restart idling,
                          2 - reset the backend to wait for a frontend." />
    </group>
    <group human_label="Backend Wakeup settings"
           unique_label="backend_wakeup_settings">

      <group human_label="Master Backends"
             unique_label="backend_wakeup_settings_master_backends">
        <setting data_type="select" value="WOLbackendReconnectWaitTime"
                 label="Delay between wake attempts (seconds)"
                 default_data="0"
                 setting_type="global"
                 help_text="Length of time the frontend waits between
                            tries to wake up the master backend. This should
                            be the time your master backend needs to startup.
                            Set to 'Disabled' to disable.">
          <option display="Disabled" data="0" />
          <option display="1" data="1" />
          <option display="2" data="2" />
          <option display="4" data="4" />
          <option display="8" data="8" />
          <option display="15" data="15" />
          <option display="30" data="30" />
          <option display="60" data="60" />
          <option display="120" data="120" />
          <option display="300" data="300" />
          <option display="600" data="600" />
          <option display="1200" data="1200" />
        </setting>
        <setting data_type="select" value="WOLbackendConnectRetry"
                 label="Wake attempts"
                 setting_type="global"
                 help_text="Number of times the frontend will try to wake
                            up the master backend."
                 default_data="5">
          <option display="1" data="1" />
          <option display="2" data="2" />
          <option display="5" data="5" />
          <option display="10" data="10" />
          <option display="20" data="20" />
          <option display="40" data="40" />
          <option display="60" data="60" />
        </setting>
        <setting data_type="string" value="WOLbackendCommand"
                 label="Wake command"
                 default_data=""
                 setting_type="global"
                 placeholder_text="Enter Wake command"
                 help_text="The command used to wake up your master
                            backend server. For example,
                            'sudo /etc/init.d/mythtv-backend restart'." />
      </group>

      <group human_label="Slave Backends"
             unique_label="backend_wakeup_settings_slave_backends">
        <setting data_type="string" value="SleepCommand"
                 label="Sleep command"
                 default_data=""
                 setting_type="host"
                 placeholder_text="Enter sleep command"
                 help_text="The command used to put this slave to sleep.
                            If set, the master backend will use this
                            command to put this slave to sleep when it
                            is not needed for recording." />
        <setting data_type="string" value="WakeUpCommand"
                 label="Wake command"
                 default_data=""
                 setting_type="host"
                 placeholder_text="Enter wake command"
                 help_text="The command used to wake up this slave from sleep.
                            This setting is not used on the master backend." />
      </group>
    </group>
    <group human_label="Backend Control"
           unique_label="backend_control">
      <setting data_type="string" value="BackendStopCommand"
               label="Backend stop command"
               default_data="killall mythbackend"
               setting_type="global"
               placeholder_text="Enter backend stop command"
               help_text="The command used to stop the backend
                          when running on the master backend server. For
                          example, 'sudo /etc/init.d/mythtv-backend stop'." />
      <setting data_type="string" value="BackendStartCommand"
               label="Backend start command"
               default_data="mythbackend"
               setting_type="global"
               placeholder_text="Enter backend start command"
               help_text="The command used to start the backend
                          when running on the master backend server. For
                          example, 'sudo /etc/init.d/mythtv-backend start'." />
    </group>
    <group human_label="Job Queue (Backend-Specific)"
           unique_label="job_queue_host">
      <setting data_type="select" value="JobQueueMaxSimultaneousJobs"
               label="Maximum simultaneous jobs on this backend"
               setting_type="host"
               help_text="The Job Queue will be limited to running
                          this many simultaneous jobs on this backend."
               default_data="1">
        <option display="0" data="0" />
        <option display="1" data="1" />
        <option display="2" data="2" />
        <option display="3" data="3" />
        <option display="4" data="4" />
        <option display="5" data="5" />
        <option display="6" data="6" />
        <option display="7" data="7" />
        <option display="8" data="8" />
        <option display="9" data="9" />
        <option display="10" data="10" />
      </setting>
      <setting data_type="select" value="JobQueueCheckFrequency"
               label="Job Queue check frequency (seconds)"
               setting_type="host"
               help_text="When looking for new jobs to process, the Job
                          Queue will wait this many seconds between checks."
               default_data="60">
        <option display="5" data="5" />
        <option display="10" data="10" />
        <option display="15" data="15" />
        <option display="30" data="30" />
        <option display="60" data="60" />
        <option display="90" data="90" />
        <option display="200" data="200" />
        <option display="300" data="300" />
      </setting>
      <setting data_type="timeofday" value="JobQueueWindowStart"
               default_value="00:00" label="Job Queue start time"
               setting_type="host"
               help_text="This setting controls the start of the Job Queue time
                          window, which determines when new jobs will be
                          started." />
      <setting data_type="timeofday" value="JobQueueWindowEnd"
               default_value="23:59" label="Job Queue end time"
               setting_type="host"
               help_text="This setting controls the end of the Job Queue time
                          window, which determines when new jobs will be
                          started." />
      <setting data_type="select" value="JobQueueCPU"
               label="CPU usage"
               setting_type="host"
               help_text="This setting controls approximately how
                          much CPU jobs in the queue may consume.
                          On 'High', all available CPU time may be used,
                          which could cause problems on slower systems.">
        <option display="Low"    data="0" />
        <option display="Medium" data="1" />
        <option display="High"   data="2" />
      </setting>
      <setting data_type="checkbox" value="JobAllowMetadata"
               label="Allow metadata lookup jobs"
               default_data="true"
               setting_type="host"
               help_text="If enabled, allow metadata lookup jobs to
                          run on this backend. Metadata lookup jobs
                          add information like season and episode to
                          completed recordings." />
      <setting data_type="checkbox" value="JobAllowCommFlag"
               label="Allow commercial-detection jobs"
               default_data="true"
               setting_type="host"
               help_text="If enabled, allow jobs of this type to run
                          on this backend." />
      <setting data_type="checkbox" value="JobAllowTranscode"
               label="Allow transcoding jobs"
               default_data="true"
               setting_type="host"
               help_text="If enabled, allow jobs of this type to run
                          on this backend." />
      <setting data_type="checkbox" value="JobAllowUserJob1"
               label="Allow user job #1 on this backend"
               default_data="0"
               setting_type="host"
               help_text="If enabled, allow jobs of this type to run
                          on this backend." />
      <setting data_type="checkbox" value="JobAllowUserJob2"
               label="Allow user job #2 on this backend"
               default_data="0"
               setting_type="host"
               help_text="If enabled, allow jobs of this type to run
                          on this backend." />
      <setting data_type="checkbox" value="JobAllowUserJob3"
               label="Allow user job #3 on this backend"
               default_data="0"
               setting_type="host"
               help_text="If enabled, allow jobs of this type to run
                          on this backend." />
      <setting data_type="checkbox" value="JobAllowUserJob4"
               label="Allow user job #4 on this backend"
               default_data="0"
               setting_type="host"
               help_text="If enabled, allow jobs of this type to run
                          on this backend." />
    </group>
    <group human_label="Job Queue (Global)"
           unique_label="job_queue_global">
      <setting data_type="checkbox" value="JobsRunOnRecordHost"
               label="Run jobs only on original recording backend"
               default_data="0"
               setting_type="global"
               help_text="If enabled, jobs in the queue will be required
                          to run on the backend that made the
                          original recording." />
      <setting data_type="checkbox" value="AutoCommflagWhileRecording"
               label="Start auto-commercial-detection jobs when the recording starts"
               default_data="0"
               setting_type="global"
               help_text="If enabled and automatic commercial detection is
                          ON for a recording, the job will be started
                          as soon as the recording starts. Not
                          recommended on underpowered systems." />
      <setting data_type="string" value="JobQueueCommFlagCommand"
               label="Commercial-detection command"
               default_data="mythcommflag"
               setting_type="global"
               placeholder_text="Enter commercial-detection command"
               help_text="The program used to detect commercials in a
                          recording. The default is 'mythcommflag'
                          if this setting is empty." />
      <setting data_type="string" value="JobQueueTranscodeCommand"
               label="Transcoder command"
               default_data="mythtranscode"
               setting_type="global"
               placeholder_text="Enter transcoder command"
               help_text="The program used to transcode recordings.
                          The default is 'mythtranscode' if this
                          setting is empty." />
      <setting data_type="checkbox" value="AutoTranscodeBeforeAutoCommflag"
               label="Run transcode jobs before auto commercial detection"
               default_data="0"
               setting_type="global"
               help_text="If enabled, and if both auto-transcode and
                          auto commercial detection are turned on for a
                          recording, transcoding will run first;
                          otherwise, commercial detection runs first." />
      <setting data_type="checkbox" value="SaveTranscoding"
               label="Save original files after transcoding (globally)"
               default_data="0"
               setting_type="global"
               help_text="If enabled and the transcoder is active, the
                          original files will be renamed to .old once the
                          transcoding is complete." />
    </group>
    <group human_label="Job Queue (Job Commands)"
           unique_label="job_queue_job_commands">
      <setting data_type="string" value="UserJobDesc1"
               label="User job #1 description"
               default_data="User Job #1"
               setting_type="global"
               placeholder_text="Enter user job description"
               help_text="The description for this user job."   />
      <setting data_type="string" value="UserJob1"
               label="User job #1 command"
               default_data=""
               setting_type="global"
               placeholder_text="Enter user job command"
               help_text="The command to run whenever this user job
                          number is scheduled." />
      <setting data_type="string" value="UserJobDesc2"
               label="User job #2 description"
               default_data="User Job #2"
               setting_type="global"
               placeholder_text="Enter user job description"
               help_text="The description for this user job."   />
      <setting data_type="string" value="UserJob2"
               label="User job #2 command"
               default_data=""
               setting_type="global"
               placeholder_text="Enter user job command"
               help_text="The command to run whenever this user job
                          number is scheduled." />
      <setting data_type="string" value="UserJobDesc3"
               label="User job #3 description"
               default_data="User Job #3"
               setting_type="global"
               placeholder_text="Enter user job description"
               help_text="The description for this user job."   />
      <setting data_type="string" value="UserJob3"
               label="User job #3 command"
               default_data=""
               setting_type="global"
               placeholder_text="Enter user job command"
               help_text="The command to run whenever this user job
                          number is scheduled." />
      <setting data_type="string" value="UserJobDesc4"
               label="User job #4 description"
               default_data="User Job #4"
               setting_type="global"
               placeholder_text="Enter user job description"
               help_text="The description for this user job."   />
      <setting data_type="string" value="UserJob4"
               label="User job #4 command"
               default_data=""
               setting_type="global"
               placeholder_text="Enter user job command"
               help_text="The command to run whenever this user job
                          number is scheduled." />
    </group>
    <group human_label="UPNP Server Settings"
           unique_label="upnp_server_settings">
<!--
      <setting data_type="checkbox" value="UPnP/RecordingsUnderVideos"
               label="Include recordings in video list" default_data="0"
               setting_type="global"
               help_text="If enabled, the master backend will include the
                          list of recorded shows in the list of videos.
                          This is mainly to accommodate UPnP players which
                          do not allow more than 1 video section."  />
-->
      <setting data_type="select" value="UPnP/WMPSource"
               label="Video content to show a WMP client"
               default_data="0"
               setting_type="global"
               help_text="Which tree to show a Windows Media Player
                          client when it requests a list of videos.">
        <option display="Recordings" data="0" />
        <option display="Videos" data="1" />
      </setting>
    </group>
    <group human_label="Program Schedule Downloading Options"
           unique_label="program_schedule_downloading_options">
      <setting data_type="checkbox" value="MythFillEnabled"
               label="Automatically update program listings"
               default_data="1"
               setting_type="global"
               help_text="If enabled, the guide data program will be
                          run automatically." />
      <setting data_type="string" value="MythFillDatabasePath"
               setting_type="global"
               label="Guide data program"
               default_data="mythfilldatabase"
               placeholder_text="Enter guide data command"
               help_text="Use 'mythfilldatabase' or the name of a custom
                          script that will populate the program guide info
                          for all your video sources." />
      <setting data_type="string" value="MythFillDatabaseArgs"
               setting_type="global"
               label="Guide data arguments"
               default_data=""
               placeholder_text="Enter guide data program arguments"
               help_text="Any arguments you want passed to the
                          guide data program." />

      <setting data_type="select" value="MythFillMinHour"
               label="Guide data program execution start"
               default_data="0"
               setting_type="global"
               help_text="This setting and the following one define a
                          time period when the guide data program is allowed
                          to run. For example, setting start to 11 and
                          end to 13 would mean that the program would only
                          run between 11:00 AM and 1:59 PM.">
        <option display="12 AM" data="0" />
        <option display="1 AM"  data="1" />
        <option display="2 AM"  data="2" />
        <option display="3 AM"  data="3" />
        <option display="4 AM"  data="4" />
        <option display="5 AM"  data="5" />
        <option display="6 AM"  data="6" />
        <option display="7 AM"  data="7" />
        <option display="8 AM"  data="8" />
        <option display="9 AM"  data="9" />
        <option display="10 AM" data="10" />
        <option display="11 AM" data="11" />
        <option display="12 PM" data="12" />
        <option display="1 PM"  data="13" />
        <option display="2 PM"  data="14" />
        <option display="3 PM"  data="15" />
        <option display="4 PM"  data="16" />
        <option display="5 PM"  data="17" />
        <option display="6 PM"  data="18" />
        <option display="7 PM"  data="19" />
        <option display="8 PM"  data="20" />
        <option display="9 PM"  data="21" />
        <option display="10 PM" data="22" />
        <option display="11 PM" data="23" />
      </setting>

      <setting data_type="select" value="MythFillMaxHour"
               label="Guide data program execution end"
               default_data="23"
               setting_type="global"
               help_text="This setting and the preceding one define a
                          time period when the guide data program is allowed
                          to run. For example, setting start to 11 and
                          end to 13 would mean that the program would only
                          run between 11:00 AM and 1:59 PM.">
        <option display="12 AM" data="0" />
        <option display="1 AM"  data="1" />
        <option display="2 AM"  data="2" />
        <option display="3 AM"  data="3" />
        <option display="4 AM"  data="4" />
        <option display="5 AM"  data="5" />
        <option display="6 AM"  data="6" />
        <option display="7 AM"  data="7" />
        <option display="8 AM"  data="8" />
        <option display="9 AM"  data="9" />
        <option display="10 AM" data="10" />
        <option display="11 AM" data="11" />
        <option display="12 PM" data="12" />
        <option display="1 PM"  data="13" />
        <option display="2 PM"  data="14" />
        <option display="3 PM"  data="15" />
        <option display="4 PM"  data="16" />
        <option display="5 PM"  data="17" />
        <option display="6 PM"  data="18" />
        <option display="7 PM"  data="19" />
        <option display="8 PM"  data="20" />
        <option display="9 PM"  data="21" />
        <option display="10 PM" data="22" />
        <option display="11 PM" data="23" />
      </setting>
      <setting data_type="checkbox" value="MythFillGrabberSuggestsTime"
               label="Run guide data program at time suggested by the grabber."
               default_data="1"
               setting_type="global"
               help_text="If enabled, allow a DataDirect guide data provider
                          to specify the next download time in order to
                          distribute load on their servers. Guide data program
                          execution start/end times are also ignored." />
    </group>
    <group human_label="System Events"
           unique_label="system_events">
      <setting
         value="EventCmdRecPending" label="Recording pending"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdRecPending"
         data_type="string" />
      <setting
         value="EventCmdRecStarted" label="Recording started"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdRecStarted"
         data_type="string" />
      <setting
         value="EventCmdRecStartedWriting" label="Recording started writing"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdRecStartedWriting"
         data_type="string" />
      <setting
         value="EventCmdRecFinished" label="Recording finished"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdRecFinished"
         data_type="string" />
      <setting
         value="EventCmdRecDeleted" label="Recording deleted"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdRecDeleted"
         data_type="string" />
      <setting
         value="EventCmdRecExpired" label="Recording expired"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdRecExpired"
         data_type="string" />
      <setting
         value="EventCmdLivetvStarted" label="LiveTV started"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdLivetvStarted"
         data_type="string" />
      <setting
         value="EventCmdLivetvEnded" label="LiveTV ended"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdLivetvEnded"
         data_type="string" />
      <setting
         value="EventCmdPlayStarted" label="Playback started"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdPlayStarted"
         data_type="string" />
      <setting
         value="EventCmdPlayStopped" label="Playback stopped"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdPlayStopped"
         data_type="string" />
      <setting
         value="EventCmdPlayPaused" label="Playback paused"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdPlayPaused"
         data_type="string" />
      <setting
         value="EventCmdPlayUnpaused" label="Playback unpaused"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdPlayUnpaused"
         data_type="string" />
      <setting
         value="EventCmdPlayChanged" label="Playback program changed"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdPlayChanged"
         data_type="string" />
      <setting
         value="EventCmdMasterStarted" label="Master backend started"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdMasterStarted"
         data_type="string" />
      <setting
         value="EventCmdMasterShutdown" label="Master backend shutdown"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdMasterShutdown"
         data_type="string" />
      <setting
         value="EventCmdClientConnected" label="Client connected to master backend"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdClientConnected"
         data_type="string" />
      <setting
         value="EventCmdClientDisconnected" label="Client disconnected from master backend"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdClientDisconnected"
         data_type="string" />
      <setting
         value="EventCmdSlaveConnected" label="Slave backend connected to master"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdSlaveConnected"
         data_type="string" />
      <setting
         value="EventCmdSlaveDisconnected" label="Slave backend disconnected from master"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdSlaveDisconnected"
         data_type="string" />
      <setting
         value="EventCmdNetCtrlConnected" label="Network Control client connected"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdNetCtrlConnected"
         data_type="string" />
      <setting
         value="EventCmdNetCtrlDisconnected" label="Network Control client disconnected"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdNetCtrlDisconnected"
         data_type="string" />
      <setting
         value="EventCmdMythfilldatabaseRan" label="mythfilldatabase ran"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdMythfilldatabaseRan"
         data_type="string" />
      <setting
         value="EventCmdSchedulerRan" label="Scheduler ran"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdSchedulerRan"
         data_type="string" />
      <setting
         value="EventCmdSettingsCacheCleared" label="Settings cache cleared"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdSettingsCacheCleared"
         data_type="string" />
      <setting
         value="EventCmdKey01" label="Keystroke event #1"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdKey01"
         data_type="string" />
      <setting
         value="EventCmdKey02" label="Keystroke event #2"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdKey02"
         data_type="string" />
      <setting
         value="EventCmdKey03" label="Keystroke event #3"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdKey03"
         data_type="string" />
      <setting
         value="EventCmdKey04" label="Keystroke event #4"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdKey04"
         data_type="string" />
      <setting
         value="EventCmdKey05" label="Keystroke event #5"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdKey05"
         data_type="string" />
      <setting
         value="EventCmdKey06" label="Keystroke event #6"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdKey06"
         data_type="string" />
      <setting
         value="EventCmdKey07" label="Keystroke event #7"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdKey07"
         data_type="string" />
      <setting
         value="EventCmdKey08" label="Keystroke event #8"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdKey08"
         data_type="string" />
      <setting
         value="EventCmdKey09" label="Keystroke event #9"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdKey09"
         data_type="string" />
      <setting
         value="EventCmdKey10" label="Keystroke event #10"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdKey10"
         data_type="string" />
      <setting
         value="EventCmdAll" label="Any event"
         setting_type="host" default_data=""
         placeholder_text="Enter a command to run when this occurs"
         help_text="EventCmdAll"
         data_type="string" />
    </group>
  </group>
</config>
