mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 12:49:57 +00:00
youtube: test without timeout for now
This commit is contained in:
parent
97f9412a91
commit
fbacb44386
@ -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…
x
Reference in New Issue
Block a user