diff --git a/index.js b/index.js index c200ad0..68413db 100644 --- a/index.js +++ b/index.js @@ -35,7 +35,14 @@ for (const file of systemCommandFiles) { } const player = new Player(client, { - useLegacyFFmpeg: false + useLegacyFFmpeg: false, + ytdlOptions: { + requestOptions: { + headers: { + cookie: process.env.YOUTUBE_COOKIE || '' + } + } + } }); onBeforeCreateStream(async (track) => {