Closed gyvess closed 3 months ago
I'm expiriencing same issue on some urls on YouTube not sure but probably connected with #10761
Same thing with very recently uploaded YouTube videos.
youtube-dl obviously has a retry mechanism.
[download] 79.2% of ~9.08GiB at 1.68MiB/s ETA 03:12[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment Frag6952 (attempt 1 of 10)...
[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment Frag6952 (attempt 2 of 10)...
[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment Frag6952 (attempt 3 of 10)...
[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment Frag6952 (attempt 4 of 10)...
[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment Frag6952 (attempt 5 of 10)...
[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment Frag6952 (attempt 6 of 10)...
[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment Frag6952 (attempt 7 of 10)...
[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment Frag6952 (attempt 8 of 10)...
[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment Frag6952 (attempt 9 of 10)...
[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment Frag6952 (attempt 10 of 10)...
[download] Skipping fragment Frag6952...
It just doesn't catch everything
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1699, in process_info
success = dl(filename, info_dict)
File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1641, in dl
return fd.download(name, info)
File "/usr/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 354, in download
return self.real_download(filename, info_dict)
File "/usr/lib/python2.7/site-packages/youtube_dl/downloader/hls.py", line 115, in real_download
success = ctx['dl'].download(frag_filename, {'url': frag_url})
File "/usr/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 354, in download
return self.real_download(filename, info_dict)
File "/usr/lib/python2.7/site-packages/youtube_dl/downloader/http.py", line 61, in real_download
data = self.ydl.urlopen(request)
File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 2001, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/site-packages/youtube_dl/utils.py", line 1034, in https_open
req, **kwargs)
File "/usr/lib/python2.7/urllib2.py", line 1200, in do_open
r = h.getresponse(buffering=True)
File "/usr/lib/python2.7/httplib.py", line 1136, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 453, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 409, in _read_status
line = self.fp.readline(_MAXLINE + 1)
File "/usr/lib/python2.7/socket.py", line 480, in readline
data = self._sock.recv(self._rbufsize)
File "/usr/lib/python2.7/ssl.py", line 734, in recv
return self.read(buflen)
File "/usr/lib/python2.7/ssl.py", line 621, in read
v = self._sslobj.read(len or 1024)
SSLError: ('The read operation timed out',)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1699, in process_info
success = dl(filename, info_dict)
File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 1641, in dl
return fd.download(name, info)
File "/usr/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 354, in download
return self.real_download(filename, info_dict)
File "/usr/lib/python2.7/site-packages/youtube_dl/downloader/hls.py", line 115, in real_download
success = ctx['dl'].download(frag_filename, {'url': frag_url})
File "/usr/lib/python2.7/site-packages/youtube_dl/downloader/common.py", line 354, in download
return self.real_download(filename, info_dict)
File "/usr/lib/python2.7/site-packages/youtube_dl/downloader/http.py", line 61, in real_download
data = self.ydl.urlopen(request)
File "/usr/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 2001, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/site-packages/youtube_dl/utils.py", line 1034, in https_open
req, **kwargs)
File "/usr/lib/python2.7/urllib2.py", line 1197, in do_open
raise URLError(err)
URLError: <urlopen error timed out>
PS E:> youtube-dl.exe https://www.youtube.com/watch?v=clU8c2fpk2s -v [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: [u'https://www.youtube.com/watch?v=clU8c2fpk2s', u'-v'] [debug] Encodings: locale cp936, fs mbcs, out cp936, pref cp936 [debug] youtube-dl version 2018.06.19 [debug] Python version 2.7.14 (CPython) - Windows-10-10.0.17134 [debug] exe versions: ffmpeg 3.4 [debug] Proxy map: {} [youtube] clU8c2fpk2s: Downloading webpage ERROR: Unable to download webpage: <urlopen error [Errno 10060] > (caused by URLError(error(10060, ''),)) File "d:\tools\python27\lib\site-packages\youtube_dl\extractor\common.py", line 598, in _request_webpage return self._downloader.urlopen(url_or_request) File "d:\tools\python27\lib\site-packages\youtube_dl\YoutubeDL.py", line 2211, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "d:\tools\python27\lib\urllib2.py", line 429, in open response = self._open(req, data) File "d:\tools\python27\lib\urllib2.py", line 447, in _open '_open', req) File "d:\tools\python27\lib\urllib2.py", line 407, in _call_chain result = func(*args) File "d:\tools\python27\lib\site-packages\youtube_dl\utils.py", line 1101, in https_open req, **kwargs) File "d:\tools\python27\lib\urllib2.py", line 1198, in do_open raise URLError(err)
Stale.
What is the purpose of your issue?
WinError 10060
Timeout
When downloading VODs from Twitch, I frequently run into WinErrors or Timeouts. The download will hang for quite some time and then print the problem. The trouble with this is that I have to monitor the download to ensure that it's still downloading, if it isn't repeat the command, and then wait a long time to check what percentage of the file I've already downloaded then begin getting the file again.
Is there an argument I can use that would allow youtube-dl to automatically start over if data is not received for a set amount of time, preferably remembering where it left off so it doesn't have to check what's already been partially downloaded. If not I'd like to make a feature request for it. That way I can just set it and forget it.
This has only happened to me on Twitch to be clear.