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", "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",

View file

@ -643,8 +643,7 @@ 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()