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

def update(self, lib):

    self._log.info(u'Updating    Plex    library...')
    try:
        update_plex(config['plex']['host'].get(), config['plex']['port'].get(), config['plex']['token'].get(), config['plex']['library_name'].get())
        self._log.info(u'...    started.')
    except requests.exceptions.RequestException:
        self._log.warning(u'Update    failed.')
