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",
|
"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",
|
"description": "Complete framework to facilitate music commands using discord.js and play-dl",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|
|
@ -643,12 +643,11 @@ class Queue<T = unknown> {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const arbitraryStream = (hasCustomDownloader && (await this.onBeforeCreateStream(track, track.raw.source || track.raw.engine, this))) || null;
|
const arbitraryStream = (hasCustomDownloader && (await this.onBeforeCreateStream(track, track.raw.source || track.raw.engine, this))) || null;
|
||||||
stream =
|
stream = arbitraryStream
|
||||||
arbitraryStream
|
? await track.raw.engine.downloadProgressive()
|
||||||
? await track.raw.engine.downloadProgressive()
|
: typeof track.raw.engine === "function"
|
||||||
: typeof track.raw.engine === "function"
|
? await track.raw.engine()
|
||||||
? await track.raw.engine()
|
: track.raw.engine;
|
||||||
: track.raw.engine;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const ffmpegStream = createFFmpegStream(stream, {
|
const ffmpegStream = createFFmpegStream(stream, {
|
||||||
|
|
Loading…
Reference in a new issue