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.
Youtube-dl can't connect suddenly even though same video plays on browser #13203
Comments
|
Most likely there is a problem with you network connection. Post the output with |
|
Apologies for issue necro, but since I found this years later, someone else may find it useful... I was just experiencing this issue, and removing # Some other tests to run (examples use powershell but can substitute ping/nslookup)
Resolve-DnsName -Name youtube.com -Type AAAA # DNS lookup IPv6
Resolve-DnsName -Name youtube.com -Type A # DNS lookup IPv4
Test-Connection -TargetName youtube.com -IPv6 # Ping IPv6 (or use IPv6 address)
Test-Connection -TargetName youtube.com -IPv4 # Ping IPv4 (or use IPv4 address)
# Easy fix to try is flushing your DNS cache
ipconfig /flushdnsSo, I won't go into troubleshooting IPv6 connectivity, but maybe try adding the |
Make sure you are using the latest version:
Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
The 1st verbose output above, it's downloading a playlist. It stopped at certain percentage and stayed there for several minutes. I had to close the cmd window. Now, if I open the playlist page on my browser it opens. Then I close the browser tab, open cmd and start downloading the same playlist, it continues. After sometime again it stops.
The 2nd verbose output it shows en error and stopped. This happens on youtube videos too. On Youtube video the error shows:
If I enter the same command in another window of cmd, the it can't download. So, I do this:
Open the video/playlist link in Firefox, close it. Open a new cmd window and start downloading again. It then works.
I'm not sure if these 2/3 isssues are same or different. I also don't know if the issue is with my connection or youtube-dl. My point is, my internet still works and I can watch the same video on my browser. But, youtube-dl suddenly stops downloading and can't connect.
Another thing: Example on Readme.md still has C:%HOMEPATH% and two %%
C:\%HOMEPATH%\Desktop\%%(title)s.%%(ext)s. I think you should update that to toC:\$HOMEPATH\Desktop\%(title)s.%(ext)s