From MythTV Official Wiki
Revision as of 03:35, 25 August 2017 by Gtb (talk | contribs) (fix typo)

Jump to: navigation, search

MythUtil-Channel-visibility is a python script which is part of a set of related utility scripts (MythUtil-Channel-XMLTV-getLineup MythUtil-Channel-videosource MythUtil-Channel-HDHR-channelCheck MythUtil-Channel-HDHR-visibilityCheck MythUtil-Channel-visibility) that may be useful for users to maintain their channel lineup.

The definitive source location for this script is located on github, which is where one should obtain the current script.

MythUtil-Channel-visibility supports setting the MythTV lineup channel visibility.


 MythUtil-Channel-visibility [-h] [--backend BACKEND] [--port PORT]
                             [--username USERNAME] [--password PASSWORD]
                             (--videosource-name SOURCENAME | --videosource-id SOURCEID)
                             [--channel CHANNELINCLUDE [CHANNELINCLUDE ...]]
                             [--exclude-channel CHANNELEXCLUDE [CHANNELEXCLUDE ...]]
                             [--force-visible | --force-invisible]

Optional arguments:

 -h, --help            show this help message and exit
 --backend BACKEND, --host BACKEND
                       the host (backend) to access. The default is localhost.
 --port PORT           the port to connect to on on the host. The default is 6544
 --username USERNAME   the username to use for host authentication
 --password PASSWORD   the password to use for host authentication
 --videosource-name SOURCENAME
                       the video source name
 --videosource-id SOURCEID
                       the video source id
                       list of channels to consider. The default is all
                       list of channels to exclude. The default is none
 --force-visible       force the channel(s) to be set to visible
 --force-invisible     force the channel(s) to be set to invisible
 --update              update the channels to correct any detected problem.  The default is just report


Only tested with MythTV 0.28.


For the examples below, it is presumed you are running on the backend host with the default ports and the sourceid of your lineup is 1.

  • Scenario: You want set the visibility of channel 100 to be visible.
 MythUtil-Channel-visibility --videosource-id=1 --channel 100 --force-visible --update