v5.3.9
This commit is contained in:
parent
0ab06128ac
commit
e2fad021d6
2 changed files with 6 additions and 7 deletions
|
@ -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",
|
||||
|
|
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue