From 3df417ebc5f71705e029856556c23946c9ae3869 Mon Sep 17 00:00:00 2001 From: AkatGabrielGoncalves Date: Sat, 26 Oct 2024 16:18:55 -0300 Subject: [PATCH] fix --- src/modules/music/YoutubeTracks.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/modules/music/YoutubeTracks.ts b/src/modules/music/YoutubeTracks.ts index f76eb3a..9ba3cf3 100644 --- a/src/modules/music/YoutubeTracks.ts +++ b/src/modules/music/YoutubeTracks.ts @@ -44,13 +44,7 @@ class YoutubeTracks { public readonly getTrackFromURL = async (trackURL: string) => { const youtubeUrl = 'https://www.youtube.com/watch?v='; const videoId = ytdl.getURLVideoID(trackURL); - const track = await ytdl.getBasicInfo(youtubeUrl + videoId, { - requestOptions: { - headers: { - cookie: process.env.YOUTUBE_LOGIN_COOKIE, - }, - }, - }); + const track = await ytdl.getBasicInfo(youtubeUrl + videoId); return { track: this.songObject.ytVideo(track),