diff --git a/src/trigger/parser.js b/src/trigger/parser.js index 72b6cd6..b171b6c 100644 --- a/src/trigger/parser.js +++ b/src/trigger/parser.js @@ -75,9 +75,8 @@ module.exports = (lib) => { if(url.match(yt)) { // ytdl ytdl.getInfo(url, (err, inf) => { if(!err) { - console.log(JSON.stringify(inf)); var title = inf.title; - var iurl = inf.iurl; + var iurl = JSON.parse(inf.player_response).videoDetails.thumbnail.thumbnails[0].url.split('?')[0]; try { dlformat = { filter: (format) => { return format.container === 'webm'; } }; ytdl.downloadFromInfo(inf, dlformat)