This commit is contained in:
JonnyBro 2022-10-31 14:16:33 +05:00
parent 0ab06128ac
commit e2fad021d6
2 changed files with 6 additions and 7 deletions

View file

@ -1,6 +1,6 @@
{
"name": "discord-player-play-dl",
"version": "5.3.8",
"version": "5.3.9",
"description": "Complete framework to facilitate music commands using discord.js and play-dl",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View file

@ -643,12 +643,11 @@ class Queue<T = unknown> {
}
} else {
const arbitraryStream = (hasCustomDownloader && (await this.onBeforeCreateStream(track, track.raw.source || track.raw.engine, this))) || null;
stream =
arbitraryStream
? await track.raw.engine.downloadProgressive()
: typeof track.raw.engine === "function"
? await track.raw.engine()
: track.raw.engine;
stream = arbitraryStream
? await track.raw.engine.downloadProgressive()
: typeof track.raw.engine === "function"
? await track.raw.engine()
: track.raw.engine;
}
const ffmpegStream = createFFmpegStream(stream, {