From b43c9343cae76e3c063572c7bf991e331d4d2f2e Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 14 Sep 2016 18:28:04 -0500 Subject: [PATCH] Fix for Emby connect webscket issue The fix server side will be applied in the next server release --- resources/lib/connect/connectionmanager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/connect/connectionmanager.py b/resources/lib/connect/connectionmanager.py index 5869cabe..b061a17b 100644 --- a/resources/lib/connect/connectionmanager.py +++ b/resources/lib/connect/connectionmanager.py @@ -700,6 +700,8 @@ class ConnectionManager(object): url = getServerAddress(server, connectionMode) 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: auth = self.requestUrl({ @@ -710,7 +712,8 @@ class ConnectionManager(object): 'ConnectUserId': credentials['ConnectUserId'] }, 'headers': { - 'X-MediaBrowser-Token': server['ExchangeToken'] + 'X-MediaBrowser-Token': server['ExchangeToken'], + 'X-Emby-Authorization': auth } }) except Exception: