From 310c6f554358b33a46ba9aa49db765114f54f876 Mon Sep 17 00:00:00 2001 From: Jim Kroon Date: Thu, 11 Apr 2024 01:53:26 +0200 Subject: [PATCH] Fix 401 error when starting xHome stream --- main/application.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/application.ts b/main/application.ts index 43c7b6ae..7d04c602 100644 --- a/main/application.ts +++ b/main/application.ts @@ -202,7 +202,10 @@ export default class Application { }) this._authentication._xal.getStreamingToken(this._authentication._tokenStore).then((streamingTokens) => { - this._xHomeApi = new xCloudApi(this, 'uks.gssv-play-prodxhome.xboxlive.com', streamingTokens.xHomeToken.data.gsToken, 'home') + this.log('electron', __filename+'[authenticationCompleted()] Using hosts for xCloud and xHome:') + this.log('electron', __filename+'[authenticationCompleted()] - xHome:', streamingTokens.xHomeToken.getDefaultRegion().baseUri.substring(8)) + this.log('electron', __filename+'[authenticationCompleted()] - xCloud:', streamingTokens.xCloudToken.getDefaultRegion().baseUri.substring(8)) + this._xHomeApi = new xCloudApi(this, streamingTokens.xHomeToken.getDefaultRegion().baseUri.substring(8), streamingTokens.xHomeToken.data.gsToken, 'home') this._xCloudApi = new xCloudApi(this, streamingTokens.xCloudToken.getDefaultRegion().baseUri.substring(8), streamingTokens.xCloudToken.data.gsToken, 'cloud') // Let IPC know we are ready