code: def _load_config(self):
          "Load and parse config file, pass options to livestreamer"
          
          config = SafeConfigParser()
          config_file = os.path.join(self.config_path, 'settings.ini')
          config.read(config_file)
  
          for option, type in list(AVAILABLE_OPTIONS.items()):
              if config.has_option('DEFAULT', option):
                  if type == 'int':
                      value = config.getint('DEFAULT', option)
                  if type == 'float':
                      value = config.getfloat('DEFAULT', option)
                  if type == 'bool':
                      value = config.getboolean('DEFAULT', option)
                  if type == 'str':
                      value = config.get('DEFAULT', option)
  
                  self.livestreamer.set_option(option, valuef _load_config(self):
          "Load and parse config file, pass options to livestreamer"
          
          config = SafeConfigParser()
          config_file = os.path.join(self.config_path, 'settings.ini')
          config.read(config_file)
  
          for option, type in list(AVAILABLE_OPTIONS.items()):
              if config.has_option('DEFAULT', option):
                  if type == 'int':
                      value = config.getint('DEFAULT', option)
                  if type == 'float':
                      value = config.getfloat('DEFAULT', option)
                  if type == 'bool':
                      value = config.getboolean('DEFAULT', option)
                  if type == 'str':
                      value = config.get('DEFAULT', option)
  
                  self.livestreamer.set_option(option, value)
docs: Load and parse config file, pass options to livestreamer