From 8ec83736b4e691ad31e8900c60cc85a3c775e5ff Mon Sep 17 00:00:00 2001 From: Lele <62852525+LeleDerGrasshalmi@users.noreply.github.com> Date: Sun, 24 Nov 2024 14:08:44 +0100 Subject: [PATCH] Fix requests data returned directly (#792) * fix(client): fix getEpicgamesServerStatus * fix(client): fix downloadBlurlStream --- src/Client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.ts b/src/Client.ts index f0d63471..a1cd35d1 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -902,7 +902,7 @@ class Client extends EventEmitter { throw new Error('Request returned an empty body'); } - return new EpicgamesServerStatus(this, epicgamesServerStatus.data); + return new EpicgamesServerStatus(this, epicgamesServerStatus); } /** @@ -931,7 +931,7 @@ class Client extends EventEmitter { responseType: 'arraybuffer', }); - const streamData: BlurlStreamData = await parseBlurlStream(blurlFile.data); + const streamData: BlurlStreamData = await parseBlurlStream(blurlFile); const streamMetaData = { subtitles: streamData.subtitles ? JSON.parse(streamData.subtitles) : {},