Skip to content

Commit

Permalink
Fixed Heroku account banning issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubha Pratim Biswas authored Nov 12, 2022
1 parent 9759794 commit 172fcc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ytdlcore.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ const ytdl = require('ytdl-core');
stream.once('response', () => {
starttime = Date.now();
});
/*
stream.on('progress', (chunkLength, downloaded, total) => {
const percent = downloaded / total;
const downloadedMinutes = (Date.now() - starttime) / 1000 / 60;
Expand All @@ -223,6 +224,7 @@ const ytdl = require('ytdl-core');
readline.moveCursor(process.stdout, 0, -1);
//let txt = `${bgColor(color('[FFMPEG]]', 'black'), '#38ef7d')} ${color(moment().format('DD/MM/YY HH:mm:ss'), '#A1FFCE')} ${gradient.summer('[Converting..]')} ${gradient.cristal(p.targetSize)} kb`
});
*/
stream.on('end', () => process.stdout.write('\n\n'));
stream.on('error', (err) => console.log(err))

Expand Down Expand Up @@ -261,4 +263,4 @@ const ytdl = require('ytdl-core');
}
}

module.exports = YT;
module.exports = YT;

0 comments on commit 172fcc1

Please sign in to comment.