Skip to content

Commit

Permalink
fix temp fds
Browse files Browse the repository at this point in the history
  • Loading branch information
AkatGabrielGoncalves committed Oct 26, 2024
1 parent 3df417e commit b6931a0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/modules/music/YoutubeTracks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,18 @@ 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);
// const track = await ytdl.getBasicInfo(youtubeUrl + videoId);

// temp
return {
track: this.songObject.ytVideo(track),
url: track.videoDetails.video_url,
title: track.videoDetails.title,
track: {
url: youtubeUrl + videoId,
title: youtubeUrl + videoId,
duration: 0,
thumbnail: '',
},
url: youtubeUrl + videoId,
title: youtubeUrl + videoId,
};
};

Expand Down

0 comments on commit b6931a0

Please sign in to comment.