From 88358b8d80cd413ba59043e83f97b774809b1392 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Mon, 30 Mar 2020 04:48:24 +0200 Subject: [PATCH] Make sure it can't download playlist --- commands/fun/ytp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fun/ytp.js b/commands/fun/ytp.js index 3caf4b2..bbf844a 100644 --- a/commands/fun/ytp.js +++ b/commands/fun/ytp.js @@ -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);