'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 sickrage.srCore.srConfig.USE_EMBY:
        if (not sickrage.srCore.srConfig.EMBY_HOST):
            sickrage.srCore.srLogger.debug(u'EMBY:    No    host    specified,    check    your    settings')
            return False
        if show:
            if (show.indexer == 1):
                provider = u'tvdb'
            elif (show.indexer == 2):
                sickrage.srCore.srLogger.warning(u'EMBY:    TVRage    Provider    no    longer    valid')
                return False
            else:
                sickrage.srCore.srLogger.warning(u'EMBY:    Provider    unknown')
                return False
            query = (u'?%sid=%s' % (provider, show.indexerid))
        else:
            query = u''
        url = (u'http://%s/emby/Library/Series/Updated%s' % (sickrage.srCore.srConfig.EMBY_HOST, query))
        values = {}
        data = urllib.urlencode(values)
        try:
            req = urllib2.Request(url, data)
            req.add_header(u'X-MediaBrowser-Token', sickrage.srCore.srConfig.EMBY_APIKEY)
            response = urllib2.urlopen(req)
            result = response.read()
            response.close()
            sickrage.srCore.srLogger.debug((u'EMBY:    HTTP    response:    ' + result.replace(u'\n', u'')))
            return True
        except (urllib2.URLError, IOError) as e:
            sickrage.srCore.srLogger.warning((((u"EMBY:    Warning:    Couldn't    contact    Emby    at    " + url) + u'    ') + e))
            return False
