Fix for Emby connect webscket issue

The fix server side will be applied in the next server release
This commit is contained in:
angelblue05 2016-09-14 18:28:04 -05:00
parent 20d499338b
commit b43c9343ca

View file

@ -700,6 +700,8 @@ class ConnectionManager(object):
url = getServerAddress(server, connectionMode) url = getServerAddress(server, connectionMode)
url = self.getEmbyServerUrl(url, "Connect/Exchange?format=json") url = self.getEmbyServerUrl(url, "Connect/Exchange?format=json")
auth = ('MediaBrowser Client="%s", Device="%s", DeviceId="%s", Version="%s"'
% (self.appName, self.deviceName, self.deviceId, self.appVersion))
try: try:
auth = self.requestUrl({ auth = self.requestUrl({
@ -710,7 +712,8 @@ class ConnectionManager(object):
'ConnectUserId': credentials['ConnectUserId'] 'ConnectUserId': credentials['ConnectUserId']
}, },
'headers': { 'headers': {
'X-MediaBrowser-Token': server['ExchangeToken'] 'X-MediaBrowser-Token': server['ExchangeToken'],
'X-Emby-Authorization': auth
} }
}) })
except Exception: except Exception: