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.
Retry on ERROR #506
Retry on ERROR #506
Comments
|
I tested using a timeout in FileDownloader.py on line 589: Then while downloading a video, I temporarily disconnected my internet to test it, which gave me this: With the way things currently are, it looks like it would be a little messy to get the program to use Retries in the downloading section of the code. I think to do it properly may require dividing the code up into smaller functions- one function for initializing the connection, another function for downloading the data. Take those two functions and wrap them in a while loop that does overall counting. |
|
I'm not really into the downloading routines, but I'm +1 on this and I'm ok with this being assigned to me (I'll figure it out) if @phihag doesn't have time. |
|
Oops, I see this issue is potentiall unrelated to #507, isn't it? |
|
I would really like you guys to set urllib2.urlopen(request, timeout=XX) to something shorter then the current "tens of minutes" or whatever the default is. |
|
@weedy Have you tried the |
I have an imperfect internet connection, so I set the options to -c continue, and -R retry 100 times. Unfortunately, if the program reaches ERROR, it thinks it's not supposed to retry any more, and quits.
[youtube] Pq_JFaqsNYI: Downloading video webpage
[youtube] Pq_JFaqsNYI: Downloading video info webpage
[youtube] Pq_JFaqsNYI: Extracting video information
[download] Destination: Bioshock_Playthrough_pt_7-Pq_JFaqsNYI.flv
[download] 59.5% of 115.43M at 88.34k/s ETA 09:01
ERROR: unable to download video
It would be great if youtube-dl didn't give up at 59.5% of the download, and instead finished exhausting retries (possibly with a short 2 second pause between retries).