This commit is contained in:
Snowflake107 2021-04-14 08:45:06 +05:45
parent 54e22e6e77
commit 7f39ee07fe

View file

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