mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06: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 = 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:
|
||||
|
|
Loading…
Reference in a new issue