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