From 7ce487c8e67c5189643562d2f5283c3051db3eed Mon Sep 17 00:00:00 2001 From: localhost Date: Sat, 30 Mar 2024 18:04:00 +0100 Subject: [PATCH] im stupid --- utils/ytdlp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/ytdlp.js b/utils/ytdlp.js index 56806ef..ddda2e6 100644 --- a/utils/ytdlp.js +++ b/utils/ytdlp.js @@ -5,7 +5,7 @@ const hr = require('@tsmx/human-readable') async function downloadVideo(url, ws, id) { return new Promise(async (resolve, reject) => { - let quality = '720p' + let quality = '720' const video = await metadata.getVideoMetadata(id) if (video.error) { return resolve({ @@ -13,7 +13,7 @@ async function downloadVideo(url, ws, id) { fail: true }) } - if (video.basic_info.duration >= 900) quality = '360p' // 15 minutes + if (video.basic_info.duration >= 900) quality = '360' // 15 minutes const downloadJson = await metadata.getVideoDownload(url, quality) if (downloadJson.status == 'error') {