http instead of https

This commit is contained in:
localhost 2024-06-28 20:02:14 +02:00
parent b29c5dcd48
commit bbe9844828
1 changed files with 1 additions and 1 deletions

View File

@ -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