log yt-dl info

This commit is contained in:
jkhsjdhjs 2017-03-30 19:54:14 +02:00
parent 3b0786b81a
commit 54a1ef4a7b

View File

@ -75,6 +75,7 @@ module.exports = (lib) => {
if(url.match(yt)) { // ytdl
ytdl.getInfo(url, (err, inf) => {
if(!err) {
lib.log(JSON.stringify(inf));
var title = inf.title;
var iurl = inf.iurl;
try {