This commit is contained in:
Snowflake107 2021-04-14 08:44:39 +05:45
parent bfed268e7a
commit 54e22e6e77

View file

@ -1059,6 +1059,7 @@ export class Player extends EventEmitter {
let newStream: any;
if (queue.playing.raw.source === 'youtube') {
newStream = ytdl(queue.playing.url, {
filter: queue.playing.raw.live ? undefined : "audioonly",
opusEncoded: true,
encoderArgs: queue.playing.raw.live ? [] : encoderArgs,
seek: seekTime / 1000,