ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
129.64k stars 9.77k forks source link

socks5 with DNS-requests #32696

Open zeiha opened 5 months ago

zeiha commented 5 months ago

Checklist

Description

Using SOCKS-proxy (e.g. socks5://) is already implemented meanwhile, but unfortunately it does not work with DNS-requests (e.g. socks5h://). Is there a possibility to include this "feature"...?

dirkf commented 5 months ago

Basically we rely on the proxy support in the standard library. I suspect that this is not supported with the modules that we use and would be hard to implement. You might be able to achieve what you want by configuring a separate web proxy that understands socks5h as the proxy for yt-dl.

dirkf commented 3 months ago

I'd be happy to consider a PR based on https://github.com/SeaHOH/extproxy as an optional dependency.

This could also address #32549 and some other historic proxy issues.