whoops, switching to socks5
This commit is contained in:
		
							parent
							
								
									5b70a7265c
								
							
						
					
					
						commit
						e693e57cae
					
				| 
						 | 
				
			
			@ -3,7 +3,7 @@ const DOMPurify = require('isomorphic-dompurify')
 | 
			
		|||
 | 
			
		||||
async function downloadVideo(url, ws) {
 | 
			
		||||
    return new Promise((resolve, reject) => {
 | 
			
		||||
        const child = child_process.spawn("../yt-dlp", ["--proxy", "http://gluetun:8888", url], {cwd: 'videos', shell: false})
 | 
			
		||||
        const child = child_process.spawn("../yt-dlp", ["--proxy", "socks5://gluetun:1080", url], {cwd: 'videos', shell: false})
 | 
			
		||||
        // https://github.com/yt-dlp/yt-dlp/blob/cc8d8441524ec3442d7c0d3f8f33f15b66aa06f3/README.md?plain=1#L1500
 | 
			
		||||
        
 | 
			
		||||
        child.stdout.on("data", data => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue