From bbe9844828608ee2e30b16f9bdbbbc02c3f6284e Mon Sep 17 00:00:00 2001 From: localhost Date: Fri, 28 Jun 2024 20:02:14 +0200 Subject: [PATCH] http instead of https --- utils/ytdlp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ytdlp.js b/utils/ytdlp.js index 8a81aa4..0c14493 100644 --- a/utils/ytdlp.js +++ b/utils/ytdlp.js @@ -30,7 +30,7 @@ async function downloadVideo(url, ws, id) { const alreadyPrecentages = [] const target = Array.isArray(downloadJson.url) ? downloadJson.url[0] : downloadJson.url - const download = wget.download(target, `./videos/${id}.mp4`) + const download = wget.download(target.replace('https://', 'http://'), `./videos/${id}.mp4`) download.on('start', fileSize => { size = fileSize