log yt-dl info
This commit is contained in:
parent
3b0786b81a
commit
54a1ef4a7b
|
@ -75,6 +75,7 @@ module.exports = (lib) => {
|
||||||
if(url.match(yt)) { // ytdl
|
if(url.match(yt)) { // ytdl
|
||||||
ytdl.getInfo(url, (err, inf) => {
|
ytdl.getInfo(url, (err, inf) => {
|
||||||
if(!err) {
|
if(!err) {
|
||||||
|
lib.log(JSON.stringify(inf));
|
||||||
var title = inf.title;
|
var title = inf.title;
|
||||||
var iurl = inf.iurl;
|
var iurl = inf.iurl;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user