Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http error #5538

Closed
szemy opened this issue Apr 27, 2015 · 3 comments
Closed

Http error #5538

szemy opened this issue Apr 27, 2015 · 3 comments

Comments

@szemy
Copy link

@szemy szemy commented Apr 27, 2015

Hi!
Just got this error in a youtube video:

youtube-dl --verbose https://www.youtube.com/watch?t=48&v=e2CXaJv0cMw
[1] 21336
tamas@tamas-IdeaPad-U310:~/Videos$ [debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'https://www.youtube.com/watch?t=48']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.04.26
[debug] Python version 2.7.6 - Linux-3.16.0-34-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] exe versions: avconv 9.18-6, avprobe 9.18-6
[debug] Proxy map: {}
[generic] watch?t=48: Requesting header
[redirect] Following redirect to https://www.youtube.com/supported_browsers?next_url=%2F
[youtube:user] supported_browsers: Downloading page #1
ERROR: Unable to download webpage: HTTP Error 404: Not Found (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 "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 315, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1701, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Thanks!

@szemy
Copy link
Author

@szemy szemy commented Apr 27, 2015

Without the t=48 it works. Might be good to handle this as most of the time it is copy paste from browser.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 27, 2015

You have to escape & or enclose the whole URL in quotes:
youtube-dl --verbose "https://www.youtube.com/watch?t=48&v=e2CXaJv0cMw".

@dstftw dstftw closed this Apr 27, 2015
@szemy
Copy link
Author

@szemy szemy commented Apr 27, 2015

Ok, thanks for fast response!

dstftw added a commit that referenced this issue Apr 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.