From cd4ffa8b53c6cd1453da06e79ad7e4c94e2397d2 Mon Sep 17 00:00:00 2001 From: Supositware Date: Tue, 11 Apr 2023 20:32:55 +0200 Subject: [PATCH] fix getVideoSize --- utils/videos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/videos.js b/utils/videos.js index c747b8eb..53777f70 100644 --- a/utils/videos.js +++ b/utils/videos.js @@ -96,7 +96,7 @@ async function getVideoCodec(input) { async function getVideoSize(urlArg, format = 'bestvideo*+bestaudio/best') { return await new Promise((resolve, reject) => { - exec(`yt-dlp ${urlArg} -f ${format} -O "%(filesize,filesize_approx)s"`, (err, stdout, stderr) => { + exec(`./bin/yt-dlp ${urlArg} -f ${format} -O "%(filesize,filesize_approx)s"`, (err, stdout, stderr) => { if (err) { reject(stderr); }