Open keefetang opened 6 years ago
Tested on Python 3 with the same result. Are you still unable to reproduce @dstftw?
$ youtube-dl https://www.youtube.com/watch?v=ejPe2eYhjR4 -vvvv
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=ejPe2eYhjR4', '-vvvv']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.03.26.1
[debug] Python version 3.6.5 (CPython) - Darwin-17.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.4.2, ffprobe 3.4.2
[debug] Proxy map: {}
[youtube] ejPe2eYhjR4: Downloading webpage
[youtube] ejPe2eYhjR4: Downloading video info webpage
[youtube] ejPe2eYhjR4: Extracting video information
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://r1---sn-nu5gi0c-npok.googlevideo.com/videoplayback?pl=24&mv=m&ipbits=0&ms=au%2Crdu&ei=8HXBWpvJComuoQPkh5rYBQ&ip=203.116.199.193&mt=1522627956&keepalive=yes&expire=1522649680&mm=31%2C29&id=o-ANZVTMu57syoEdsOSXtXBFO3K4OaXDMWdhMMLbz42zLx&itag=137&signature=7569BDC0283A55E908F137772B43224A5AB5C10B.A9AA44E6CD05218BC3EE1E2ED493EA53B6277F5B&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&initcwndbps=615000&source=youtube&mn=sn-nu5gi0c-npok%2Csn-npoeen7k&requiressl=yes&key=yt6&mime=video%2Fmp4&gir=yes&clen=45071774&pcm2cms=yes&c=WEB&fvip=3&lmt=1512626407581155&dur=195.153&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&ratebypass=yes'
ERROR: unable to download video data: <urlopen error [Errno 22] Invalid argument>
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1392, in connect
super().connect()
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 937, in connect
self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
OSError: [Errno 22] Invalid argument
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1890, in process_info
partial_success = dl(fname, new_info)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 1835, in dl
return fd.download(name, info)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/downloader/common.py", line 365, in download
return self.real_download(filename, info_dict)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/downloader/http.py", line 340, in real_download
establish_connection()
File "/usr/local/lib/python3.6/site-packages/youtube_dl/downloader/http.py", line 109, in establish_connection
ctx.data = self.ydl.urlopen(request)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 2199, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.6/site-packages/youtube_dl/utils.py", line 1101, in https_open
req, **kwargs)
File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 22] Invalid argument>
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like this:[x]
)Make sure you are using the latest version: run
youtube-dl --version
and ensure your version is 2017.12.02. 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?
For completeness, I tested the URL with
curl
I might be wrong, but I can't see any illegal characters that might cause the URL parsing to fail.