youtube: test without timeout for now

This commit is contained in:
GiovaniFZ 2024-10-19 11:32:46 -03:00
parent 97f9412a91
commit fbacb44386
No known key found for this signature in database
GPG Key ID: 63DD92181B575322

View File

@ -71,8 +71,7 @@ module.exports = (bot) => {
if (fs.existsSync(ytDlpPath)) { if (fs.existsSync(ytDlpPath)) {
const approxSizeInMB = await Promise.race([ const approxSizeInMB = await Promise.race([
getApproxSize(ytDlpPath, videoUrl), getApproxSize(ytDlpPath, videoUrl)
timeoutPromise(12000),
]); ]);
let videoFormat = approxSizeInMB >= 50 ? '-f best' : "-f bestvideo+bestaudio"; let videoFormat = approxSizeInMB >= 50 ? '-f best' : "-f bestvideo+bestaudio";