fix: Add cookie to ytdlOptions

This commit is contained in:
Marius Begby committed 2023-07-15 12:36:25 +02:00
1 parent de3657d4fe
commit 5f081c087d
1 file changed
+8 -1
+8 -1
View File
@@ -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) => {