Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
IPv6 support #520
IPv6 support #520
Comments
|
Currently, youtube-dl simply picks whatever your DNS/IP stack thinks is available, and for youtube, that's IPv6. I'll look into it, but may need to contact you personally to reproduce the issue, since I don't have any servers in China at the moment. Can you send me an email with ways to contact you (by icq/Jabber/email/phone, whatever)? I suspect a DNS-level issue could be the problem. What do you get if you run
on your system? |
|
Hello Philipp.
I also queried Google's dns server 2001:4860:4860::8888
I'm afraid I was wrong about my IPv6 connectivity. |
|
I can access Youtube via HTTPS in Firefox if I manually associate correct IPv6 addresses with youtube domain names in /etc/hosts. But still, youtube-dl is not working. |
|
If you use IPv6, you should use IPv6's DNS. |
|
@meteormatt Your browser (and youtube-dl) will send |
|
I have a ipv6 tunell through huricane electric. Youtube downloads are much quicker via the tunnel than when I use straight ipv4 via my ISP. I would be interested in yt-dl having a ipv6 switch. I am currently trying to get /etc/gai.conf to prefer ipv6 for google and youtube. However that is not the most portable solution. |
|
I second that, an option to force youtube-dl to use a particular version of the IP protocol would come in handy. I’m on a network where IPv6 connectivity is obtained through an IPv6 tunnel with a much lower data rate than what is available using IPv4, so using IPv6 to download large contents is impractical and might get annoying for other users. |
|
I second that the protocol should be configurable, for similar reasons. My go-to workaround as of now is to use It would be great if you could add flags like wget's -4 and -6 options manually. Alternatively, it would be great to be able to use wget in combination more easily (which is also good for stuff like --timeout, --limit-rate among other useful flags). |
|
-4 / -6 switches would be really great |
|
|
|
Nice job, thanks! |
Is it possible to force youtube-dl to work only via IPv6?
It's impossible to access Youtube via IPv4 in China without a proxy or VPN service while accessing via IPv6 has not yet been banned.
I don't know if youtube-dl chose to access youtube via IPv6 by chance. A few days ago, youtube-dl seemed to be working fine with IPv6. But recently all downloads have failed. The error message is "urlopen error [Errno 104] Connection reset by peer". I'm pretty sure there is nothing wrong with my IPv6 connectivity. The only explanation I can come up with is that youtube-dl is trying to access youtube via IPv4 right now.