mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +00:00
fix: Set quality and highWaterMark in ytdlOptions
This commit is contained in:
1 parent
457dfa1ad7
commit
7bc50d6a84
1 file changed
+2
@@ -37,6 +37,8 @@ for (const file of systemCommandFiles) {
|
|||||||
const player = new Player(client, {
|
const player = new Player(client, {
|
||||||
useLegacyFFmpeg: false,
|
useLegacyFFmpeg: false,
|
||||||
ytdlOptions: {
|
ytdlOptions: {
|
||||||
|
quality: 'highestaudio',
|
||||||
|
highWaterMark: 1 << 25,
|
||||||
requestOptions: {
|
requestOptions: {
|
||||||
headers: {
|
headers: {
|
||||||
cookie: process.env.YOUTUBE_COOKIE || ''
|
cookie: process.env.YOUTUBE_COOKIE || ''
|
||||||
|
|||||||
Reference in new issue
Block a user