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.
Use fallback Youtube server if local cache is unavailable #11779
Comments
|
I'm currently having this same problem as of yesterday. The URLs I'm getting ( Edit: Looks like there's |
|
Related: #3721 |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.01.18. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
When Google CDN server peered or hosted by local ISP (blah-blah-blah.googlevideo.com) that holds media files is unavailable, youtube-dl just hangs on TCP connect and returns a system error after a timeout. It's an obvious, straightforward behavior. However, the website (at least default Javascript player served for Firefox) checks if any data from server is available after 5 seconds, and automatically reconnects to a different (global/anycast?) CDN server (in my case, r6---sn-4g57kn6e.googlevideo.com) to play the video. I guess they bothered to handle that case because of the total amount of Google cache nodes, and ubiquitous network problems and misconfigurations.
I think it's a rare case where youtube-dl is less resilient and useful than the official way of watching Youtube.
Steps to reproduce: set iptables to drop packets to CDN servers Google picks for your IP address range, check what player on the website does.