'Handles updating the Emby Media Server host via HTTP API
Returns:
Returns True for no issue or False if there was an error'

def update_library(self, show=None):

    if sickbeard.USE_EMBY:
        if (not sickbeard.EMBY_HOST):
            logger.log(u'EMBY:    No    host    specified,    check    your    settings', logger.DEBUG)
            return False
        if show:
            if (show.indexer == 1):
                provider = u'tvdb'
            elif (show.indexer == 2):
                logger.log(u'EMBY:    TVRage    Provider    no    longer    valid', logger.WARNING)
                return False
            else:
                logger.log(u'EMBY:    Provider    unknown', logger.WARNING)
                return False
            query = u'?{0}id={1}'.format(provider, show.indexerid)
        else:
            query = u''
        url = u'http://{0}/emby/Library/Series/Updated{1}'.format(sickbeard.EMBY_HOST, query)
        values = {}
        data = urllib.parse.urlencode(values)
        try:
            req = urllib.request.Request(url, data)
            req.add_header(u'X-MediaBrowser-Token', sickbeard.EMBY_APIKEY)
            response = urllib.request.urlopen(req)
            result = response.read()
            response.close()
            logger.log((u'EMBY:    HTTP    response:    ' + result.replace(u'\n', u'')), logger.DEBUG)
            return True
        except (urllib.error.URLError, IOError) as e:
            logger.log((((u"EMBY:    Warning:    Couldn't    contact    Emby    at    " + url) + u'    ') + ex(e)), logger.WARNING)
            return False
