Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AkatGabrielGoncalves committed Oct 26, 2024
1 parent fe96811 commit 3df417e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/modules/music/YoutubeTracks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 3df417e

Please sign in to comment.