This commit is contained in:
JonnyBro 2022-10-31 14:16:46 +05:00
parent e2fad021d6
commit 5d57f6589a

View file

@ -643,11 +643,7 @@ 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, {