This commit is contained in:
Supositware 2019-01-19 23:25:08 +01:00
parent 2fa7e242d6
commit 83bc7e3aba

View file

@ -30,7 +30,7 @@ class DownloadCommand extends Command {
let big = false; let big = false;
if (link.includes('http') || link.includes('www')) { if (link.includes('http') || link.includes('www')) {
let video = youtubedl(link, [`--username=${fbuser}`, `--password=${fbpasswd}`]); let video = youtubedl(link, [`--username=${fbuser}`, `--password=${fbpasswd}`, '-v', '-g']);
video.pipe(fs.createWriteStream('./video.mp4')); video.pipe(fs.createWriteStream('./video.mp4'));
video.on('error', function error(err) { video.on('error', function error(err) {
console.log('error 2:', err); console.log('error 2:', err);