From 7bc50d6a8422f74b1329aad3e4152b6acd948b7a Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sat, 15 Jul 2023 15:36:40 +0200 Subject: [PATCH] fix: Set quality and highWaterMark in ytdlOptions --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 68413db..c48e4d1 100644 --- a/index.js +++ b/index.js @@ -37,6 +37,8 @@ for (const file of systemCommandFiles) { const player = new Player(client, { useLegacyFFmpeg: false, ytdlOptions: { + quality: 'highestaudio', + highWaterMark: 1 << 25, requestOptions: { headers: { cookie: process.env.YOUTUBE_COOKIE || ''