parameters: (self,
                  apikey,
                  mythtv = True,
                  interactive = False,
                  select_first = False,
                  debug = False,
                  custom_ui = None,
                  language = None,
                  search_all_languages = False,
                  )
docstring: apikey (str/unicode):
              Specify the target site API key. Applications need their own key in some cases
  
          mythtv (True/False):
              When True, the returned meta data is being returned has the key and values massaged to match MythTV
              When False, the returned meta data  is being returned matches what target site returned
  
          interactive (True/False): (This option is not supported by all target site apis)
              When True, uses built-in console UI is used to select the correct show.
              When False, the first search result is used.
  
          select_first (True/False): (This option is not supported currently implemented in any grabbers)
              Automatically selects the first series search result (rather
              than showing the user a list of more than one series).
              Is overridden by interactive = False, or specifying a custom_ui
  
          debug (True/False):
               shows verbose debugging information
  
          custom_ui (xx_ui.BaseUI subclass): (This option is not supported currently implemented in any grabbers)
              A callable subclass of interactive class (overrides interactive option)
  
          language (2 character language abbreviation): (This option is not supported by all target site apis)
              The language of the returned data. Is also the language search
              uses. Default is "en" (English). For full list, run..
  
          search_all_languages (True/False): (This option is not supported by all target site apis)
              By default, a Netvision grabber will only search in the language specified using
              the language option. When this is True, it will search for the
              show in any language
docstring_summary: apikey (str/unicode):
              Specify the target site API key. Applications need their own key in some cases
docstring_tokens: apikey ( str / unicode ) : Specify the target site API key . Applications need their own key in some cases
function: def __init__(self,
                  apikey,
                  mythtv = True,
                  interactive = False,
                  select_first = False,
                  debug = False,
                  custom_ui = None,
                  language = None,
                  search_all_languages = False,
                  ):
          """apikey (str/unicode):
              Specify the target site API key. Applications need their own key in some cases
  
          mythtv (True/False):
              When True, the returned meta data is being returned has the key and values massaged to match MythTV
              When False, the returned meta data  is being returned matches what target site returned
  
          interactive (True/False): (This option is not supported by all target site apis)
              When True, uses built-in console UI is used to select the correct show.
              When False, the first search result is used.
  
          select_first (True/False): (This option is not supported currently implemented in any grabbers)
              Automatically selects the first series search result (rather
              than showing the user a list of more than one series).
              Is overridden by interactive = False, or specifying a custom_ui
  
          debug (True/False):
               shows verbose debugging information
  
          custom_ui (xx_ui.BaseUI subclass): (This option is not supported currently implemented in any grabbers)
              A callable subclass of interactive class (overrides interactive option)
  
          language (2 character language abbreviation): (This option is not supported by all target site apis)
              The language of the returned data. Is also the language search
              uses. Default is "en" (English). For full list, run..
  
          search_all_languages (True/False): (This option is not supported by all target site apis)
              By default, a Netvision grabber will only search in the language specified using
              the language option. When this is True, it will search for the
              show in any language
  
          """
          self.config = {}
  
          if apikey is not None:
              self.config['apikey'] = apikey
          else:
              pass    # MNV search does not require an apikey
  
          self.config['debug_enabled'] = debug # show debugging messages
          self.common = common
          self.common.debug = debug   # Set the common function debug level
  
          self.log_name = 'MNVsearch_Grabber'
          self.common.logger = self.common.initLogger(path=sys.stderr, log_name=self.log_name)
          self.logger = self.common.logger # Setups the logger (self.log.debug() etc)
  
          self.config['custom_ui'] = custom_ui
  
          self.config['interactive'] = interactive
  
          self.config['select_first'] = select_first
  
          self.config['search_all_languages'] = search_all_languages
  
          self.error_messages = {'MNVSQLError': "! Error: A SQL call cause the exception error (%s)\n", 'MNVVideoNotFound': "! Error: Video search did not return any results (%s)\n", }
          # Channel details and search results
          self.channel = {'channel_title': 'Search all tree views', 'channel_link': 'http://www.mythtv.org/wiki/MythNetvision', 'channel_description': "MythNetvision treeview data base search", 'channel_numresults': 0, 'channel_returned': 1, 'channel_startindex': 0}
  
          self.channel_icon = '%SHAREDIR%/mythnetvision/icons/mnvsearch.png'
function_tokens: def __init__ ( self , apikey , mythtv = True , interactive = False , select_first = False , debug = False , custom_ui = None , language = None , search_all_languages = False , ) : self . config = { } if apikey is not None : self . config [ 'apikey' ] = apikey else : pass # MNV search does not require an apikey self . config [ 'debug_enabled' ] = debug # show debugging messages self . common = common self . common . debug = debug # Set the common function debug level self . log_name = 'MNVsearch_Grabber' self . common . logger = self . common . initLogger ( path = sys . stderr , log_name = self . log_name ) self . logger = self . common . logger # Setups the logger (self.log.debug() etc) self . config [ 'custom_ui' ] = custom_ui self . config [ 'interactive' ] = interactive self . config [ 'select_first' ] = select_first self . config [ 'search_all_languages' ] = search_all_languages self . error_messages = { 'MNVSQLError' : "! Error: A SQL call cause the exception error (%s)\n" , 'MNVVideoNotFound' : "! Error: Video search did not return any results (%s)\n" , } # Channel details and search results self . channel = { 'channel_title' : 'Search all tree views' , 'channel_link' : 'http://www.mythtv.org/wiki/MythNetvision' , 'channel_description' : "MythNetvision treeview data base search" , 'channel_numresults' : 0 , 'channel_returned' : 1 , 'channel_startindex' : 0 } self . channel_icon = '%SHAREDIR%/mythnetvision/icons/mnvsearch.png'