'When the client exists try to send refresh request to Kodi server.'

def update(self, lib):

    self._log.info(u'Updating    Kodi    library...')
    try:
        update_kodi(config['kodi']['host'].get(), config['kodi']['port'].get(), config['kodi']['user'].get(), config['kodi']['pwd'].get())
        self._log.info(u'...    started.')
    except requests.exceptions.RequestException:
        self._log.warning(u'Update    failed.')
