Make sure it can't download playlist

This commit is contained in:
loicbersier 2020-03-30 04:48:24 +02:00
parent 408c24e0b8
commit 88358b8d80

View file

@ -124,7 +124,7 @@ class ytpCommand extends Command {
}
if (url) {
return youtubedl.exec(url, ['--max-filesize', '50m', '--format=mp4', '-o', `./asset/ytp/userVid/${message.id}.mp4`], {}, function(err, output) {
return youtubedl.exec(url, ['--no-playlist ','--max-filesize', '50m', '--format=mp4', '-o', `./asset/ytp/userVid/${message.id}.mp4`], {}, function(err, output) {
console.log(output);
if (err) {
console.error(err);