youtube: test without timeout for now
This commit is contained in:
parent
97f9412a91
commit
fbacb44386
1 changed files with 1 additions and 2 deletions
|
@ -71,8 +71,7 @@ module.exports = (bot) => {
|
|||
|
||||
if (fs.existsSync(ytDlpPath)) {
|
||||
const approxSizeInMB = await Promise.race([
|
||||
getApproxSize(ytDlpPath, videoUrl),
|
||||
timeoutPromise(12000),
|
||||
getApproxSize(ytDlpPath, videoUrl)
|
||||
]);
|
||||
|
||||
let videoFormat = approxSizeInMB >= 50 ? '-f best' : "-f bestvideo+bestaudio";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue