From b6931a0f223d962393f85a77005d6aec3005b498 Mon Sep 17 00:00:00 2001 From: AkatGabrielGoncalves Date: Sat, 26 Oct 2024 16:23:00 -0300 Subject: [PATCH] fix temp fds --- src/modules/music/YoutubeTracks.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/modules/music/YoutubeTracks.ts b/src/modules/music/YoutubeTracks.ts index 9ba3cf3..2fb09eb 100644 --- a/src/modules/music/YoutubeTracks.ts +++ b/src/modules/music/YoutubeTracks.ts @@ -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, }; };