fix'd ytdl (hopefully)
This commit is contained in:
parent
85d86eb095
commit
d352dd8004
|
@ -76,7 +76,7 @@ module.exports = (lib) => {
|
|||
ytdl.getInfo(url, (err, inf) => {
|
||||
if(!err) {
|
||||
var title = inf.title;
|
||||
var iurl = JSON.parse(inf.player_response).videoDetails.thumbnail.thumbnails[0].url.split('?')[0];
|
||||
var iurl = inf.thumbnail_url; //JSON.parse(inf.player_response).videoDetails.thumbnail.thumbnails[0].url.split('?')[0];
|
||||
try {
|
||||
dlformat = { filter: (format) => { return format.container === 'webm'; } };
|
||||
ytdl.downloadFromInfo(inf, dlformat)
|
||||
|
|
Loading…
Reference in New Issue
Block a user