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

Can't get Youtube video URL #1128

Closed
ghost opened this issue Jul 25, 2013 · 1 comment
Closed

Can't get Youtube video URL #1128

ghost opened this issue Jul 25, 2013 · 1 comment

Comments

@ghost
Copy link

@ghost ghost commented Jul 25, 2013

Trying to get a YouTube video URL ends with this error:

[debug] System config: []
[debug] User config: ['--no-part', '--output', '~/Vídeos/%(title)s', '-', '%(id)s.%(ext)s']
[debug] Command-line args: ['--verbose', '-g', 'http://www.youtube.com/watch?v=tR8soF7n0Hg']
[debug] youtube-dl version 2013.07.19
[debug] Python version 3.3.2 - Linux-3.10.2-1-ARCH-x86_64-with-arch-Arch-Linux
[debug] Proxy map: {}
ERROR: Unable to download video webpage: HTTP Error 404: Not Found; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 416, in _real_extract
    video_webpage_bytes = compat_urllib_request.urlopen(request).read()
  File "/usr/lib/python3.3/urllib/request.py", line 156, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.3/urllib/request.py", line 475, in open
    response = meth(req, response)
  File "/usr/lib/python3.3/urllib/request.py", line 587, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.3/urllib/request.py", line 513, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.3/urllib/request.py", line 447, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.3/urllib/request.py", line 595, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 416, in _real_extract
    video_webpage_bytes = compat_urllib_request.urlopen(request).read()
  File "/usr/lib/python3.3/urllib/request.py", line 156, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.3/urllib/request.py", line 475, in open
    response = meth(req, response)
  File "/usr/lib/python3.3/urllib/request.py", line 587, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.3/urllib/request.py", line 513, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.3/urllib/request.py", line 447, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.3/urllib/request.py", line 595, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 312, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/common.py", line 96, in extract
    return self._real_extract(url)
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 418, in _real_extract
    raise ExtractorError(u'Unable to download video webpage: %s' % compat_str(err))
youtube_dl.utils.ExtractorError: Unable to download video webpage: HTTP Error 404: Not Found; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output.

YouTube has changed something for sure.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 25, 2013

The problems is with your configuration file, it's trying to download a youtube video with id -
Probably your youtube-dl.cong looks like this:

--no-part --output ~/Vídeos/%(title)s - %(id)s.%(ext)s

You have to enclose the output template with " or ', like this:

--no-part --output '~/Vídeos/%(title)s - %(id)s.%(ext)s'

Keep in mind that if the otuput template is in the configuration file the ~ won't be replaced with your home directory, so it will download to a directory called ~, you should write manually your home directory.

@jaimeMF jaimeMF closed this Jul 25, 2013
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
1 participant
You can’t perform that action at this time.