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

def _notify_emby(self, message, host=None, emby_apikey=None):

    if (not host):
        host = sickbeard.EMBY_HOST
    if (not emby_apikey):
        emby_apikey = sickbeard.EMBY_APIKEY
    url = u'http://{0}/emby/Notifications/Admin'.format(host)
    values = {u'Name': u'SickRage', u'Description': message, u'ImageUrl': sickbeard.LOGO_URL}
    data = json.dumps(values)
    try:
        req = urllib.request.Request(url, data)
        req.add_header(u'X-MediaBrowser-Token', emby_apikey)
        req.add_header(u'Content-Type', u'application/json')
        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
