mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 14:38:49 +00:00
fix: Add cookie to ytdlOptions
This commit is contained in:
1 parent
de3657d4fe
commit
5f081c087d
1 file changed
+8
-1
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user