Merge branch 'f0ckdev'

This commit is contained in:
jkhsjdhjs 2017-03-30 20:57:05 +02:00
commit 976d387aed

View File

@ -76,7 +76,7 @@ module.exports = (lib) => {
ytdl.getInfo(url, (err, inf) => { ytdl.getInfo(url, (err, inf) => {
if(!err) { if(!err) {
var title = inf.title; var title = inf.title;
var iurl = inf.iurl; var iurl = JSON.parse(inf.player_response).videoDetails.thumbnail.thumbnails[0].url.split('?')[0];
try { try {
dlformat = { filter: (format) => { return format.container === 'webm'; } }; dlformat = { filter: (format) => { return format.container === 'webm'; } };
ytdl.downloadFromInfo(inf, dlformat) ytdl.downloadFromInfo(inf, dlformat)