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.
1/16/2015 version reveals a 404 on a pretty average youtube. #4762
Comments
|
Your URL contains unescaped ampersands which have a special meaning (run the command in background) in bash (your shell), so the URL gets cut off (notice how youtube-dl only gets To solve this issue, either escape the ampersands with backslashes ( youtube-dl https://www.youtube.com/watch?x-yt-cl=84359240\&v=8nlV0RjW4rI\&x-yt-ts=1421782837on enclose the URL in single or double quotes: youtube-dl 'https://www.youtube.com/watch?x-yt-cl=84359240&v=8nlV0RjW4rI&x-yt-ts=1421782837'Once you've done that, it should work fine. |
|
Perfect thank you Nagils!
Closed #4762.— |
../music/youtube-dl --verbose https://www.youtube.com/watch?x-yt-cl=84359240&v=8nlV0RjW4rI&x-yt-ts=1421782837
[1] 13746
[2] 13747
bash: x-yt-ts=1421782837: command not found
[2]+ Done v=8nlV0RjW4rI
john@talent:~/Downloads/2015/ai$ [debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?x-yt-cl=84359240']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.01.16
[debug] Python version 2.7.3 - Linux-3.17-1-amd64-x86_64-with-debian-7.8
[debug] exe versions: none
[debug] Proxy map: {}
[generic] watch?x-yt-cl=84359240: Requesting header
[redirect] Following redirect to https://www.youtube.com/supported_browsers?next_url=%2F
[download] Downloading playlist: supported_browsers
[youtube:user] supported_browsers: Downloading video ids from 1 to 51
ERROR: Unable to download webpage: HTTP Error 400: Bad Request (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "../music/youtube-dl/youtube_dl/extractor/common.py", line 293, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "../music/youtube-dl/youtube_dl/YoutubeDL.py", line 1412, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 407, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 520, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 445, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 528, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)