proxy
This commit is contained in:
		
							parent
							
								
									e6ecd683e4
								
							
						
					
					
						commit
						60bf1f5533
					
				| 
						 | 
				
			
			@ -13,7 +13,9 @@ async function downloadVideo(url, ws, id) {
 | 
			
		|||
 | 
			
		||||
        let size = ''
 | 
			
		||||
        const alreadyPrecentages = []
 | 
			
		||||
        const download = wget.download(downloadJson.url, `./videos/${id}.webm`)
 | 
			
		||||
        const download = wget.download(downloadJson.url, `./videos/${id}.webm`, {
 | 
			
		||||
            proxy: 'socks5://gluetun:1080'
 | 
			
		||||
        })
 | 
			
		||||
        
 | 
			
		||||
        download.on('start', fileSize => {
 | 
			
		||||
            size = fileSize
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue