mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix for Emby connect webscket issue
The fix server side will be applied in the next server release
This commit is contained in:
parent
20d499338b
commit
b43c9343ca
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue