1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 04:31:56 +00:00

Update handleVideo.js

This commit is contained in:
MatteZ02 2020-06-11 14:59:09 +03:00
parent 5eb85500ed
commit 3a1ad33dd6

View File

@ -9,7 +9,7 @@ module.exports = async function (
playlist, playlist,
type type
) { ) {
const songInfo = await ytdl.getInfo(resource.url); const songInfo = await ytdl.getInfo(resource.url).catch(err => console.log(err));
const song = { const song = {
title: Discord.Util.escapeMarkdown(songInfo.videoDetails.title), title: Discord.Util.escapeMarkdown(songInfo.videoDetails.title),
url: resource.url, url: resource.url,