diff --git a/bot/commands/media/instagram.js b/bot/commands/media/instagram.js index fd9931d..b3aea21 100644 --- a/bot/commands/media/instagram.js +++ b/bot/commands/media/instagram.js @@ -56,7 +56,7 @@ module.exports = { // download the video execSync('mkdir -p tmp/instagram'); try { - execSync(`yt-dlp -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best -S vcodec:h264 -o ./tmp/instagram/${hash}.mp4 ` + videoUrl, { + execSync(`yt-dlp --cookies ./cookies.txt -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best -S vcodec:h264 -o ./tmp/instagram/${hash}.mp4 ` + videoUrl, { stdio: 'inherit', }); } catch (e) { diff --git a/bot/commands/media/tiktok.js b/bot/commands/media/tiktok.js index 29de553..0ae298c 100644 --- a/bot/commands/media/tiktok.js +++ b/bot/commands/media/tiktok.js @@ -56,7 +56,7 @@ module.exports = { // download the video execSync('mkdir -p tmp/tiktok'); try { - execSync(`yt-dlp -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best -S vcodec:h264 -o ./tmp/tiktok/${hash}.mp4 ` + videoUrl, { + execSync(`yt-dlp --cookies ./cookies.txt -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best -S vcodec:h264 -o ./tmp/tiktok/${hash}.mp4 ` + videoUrl, { stdio: 'inherit', }); } catch (e) {