forked from Supositware/Haha-Yes
fix getVideoSize
This commit is contained in:
parent
aacd7aa9fa
commit
cd4ffa8b53
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue