From 3a1ad33dd6487ed9085735a721c862ef67e6a72e Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Thu, 11 Jun 2020 14:59:09 +0300 Subject: [PATCH] Update handleVideo.js --- src/struct/funcs/handleVideo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/struct/funcs/handleVideo.js b/src/struct/funcs/handleVideo.js index 8f62451e..dc41c1d0 100644 --- a/src/struct/funcs/handleVideo.js +++ b/src/struct/funcs/handleVideo.js @@ -9,7 +9,7 @@ module.exports = async function ( playlist, type ) { - const songInfo = await ytdl.getInfo(resource.url); + const songInfo = await ytdl.getInfo(resource.url).catch(err => console.log(err)); const song = { title: Discord.Util.escapeMarkdown(songInfo.videoDetails.title), url: resource.url,