gluetun proxy for wget

This commit is contained in:
localhost 2024-04-04 20:38:18 +02:00
parent 5dd7052225
commit c33251a807
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ async function downloadVideo(url, ws, id) {
let prevBytes = 0 let prevBytes = 0
let speed = 0 let speed = 0
const alreadyPrecentages = [] const alreadyPrecentages = []
const download = wget.download(downloadJson.url, `./videos/${id}.mp4`) const download = wget.download(downloadJson.url, `./videos/${id}.mp4`, {
proxy: 'http://gluetun:8888'
})
download.on('start', fileSize => { download.on('start', fileSize => {
size = fileSize size = fileSize