Skip to content

Commit

Permalink
Fix requests data returned directly (fnbrjs#792)
Browse files Browse the repository at this point in the history
* fix(client): fix getEpicgamesServerStatus

* fix(client): fix downloadBlurlStream
  • Loading branch information
LeleDerGrasshalmi authored Nov 24, 2024
1 parent 946abf3 commit 8ec8373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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) : {},
Expand Down

0 comments on commit 8ec8373

Please sign in to comment.