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

403 throw #2321

Closed
exFalso opened this issue Feb 5, 2014 · 1 comment
Closed

403 throw #2321

exFalso opened this issue Feb 5, 2014 · 1 comment

Comments

@exFalso
Copy link

@exFalso exFalso commented Feb 5, 2014

Hi, I get the following when trying to download ?v=5Bm5r0Au2pM:

% youtube-dl "www.youtube.com/watch?v=5Bm5r0Au2pM" --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['www.youtube.com/watch?v=5Bm5r0Au2pM', '--verbose']
[debug] Encodings: locale 'UTF-8', fs 'utf-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.02.04
[debug] Python version 3.3.3 - Linux-3.12.8-1-ARCH-x86_64-with-arch-Arch-Linux
[debug] Proxy map: {}
[youtube] Setting language
[youtube] 5Bm5r0Au2pM: Downloading webpage
[youtube] 5Bm5r0Au2pM: Downloading video info webpage
[youtube] 5Bm5r0Au2pM: Extracting video information
[youtube] 5Bm5r0Au2pM: Encrypted signatures detected.
[youtube] encrypted signature length 90 (46.43), itag 43, html5 player vfle-mVwz
[youtube] 5Bm5r0Au2pM: Downloading js player mVwz
WARNING: Writing cache to '/home/exfalso/.cache/youtube-dl/youtube-sigfuncs/js_mVwz_90.json' failed: Traceback (most recent call last):
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 369, in _extract_signature_function
    cache_res = res(test_string)
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 530, in <lambda>
    return lambda s: initial_function([s])
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 525, in resf
    res = interpret_statement(stmt, local_vars)
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 460, in interpret_statement
    v = interpret_expression(expr, local_vars, allow_recursion)
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 513, in interpret_expression
    raise ExtractorError(u'Unsupported JS expression %r' % expr)
youtube_dl.utils.ExtractorError: Unsupported JS expression '$y(a,7)'; 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. Make sure you are using the latest version; type  youtube-dl -U  to update.

WARNING: Automatic signature extraction failed: Traceback (most recent call last):
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 962, in _decrypt_signature
    return func(s)
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 530, in <lambda>
    return lambda s: initial_function([s])
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 525, in resf
    res = interpret_statement(stmt, local_vars)
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 460, in interpret_statement
    v = interpret_expression(expr, local_vars, allow_recursion)
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 513, in interpret_expression
    raise ExtractorError(u'Unsupported JS expression %r' % expr)
youtube_dl.utils.ExtractorError: Unsupported JS expression '$y(a,7)'; 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. Make sure you are using the latest version; type  youtube-dl -U  to update.

This goes on for a while, then at the end:

WARNING: Warning: Falling back to static signature algorithm
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
  File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 953, in process_info
    success = dl(filename, info_dict)
  File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 929, in dl
    return fd.download(name, info)
  File "/usr/lib/python3.3/site-packages/youtube_dl/downloader/common.py", line 290, in download
    return self.real_download(filename, info_dict)
  File "/usr/lib/python3.3/site-packages/youtube_dl/downloader/http.py", line 52, in real_download
    data = compat_urllib_request.urlopen(request)
  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 403: Forbidden
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 5, 2014

This has been fixed in youtube-dl 2014.02.04.1. Use youtube-dl -U to update.

@dstftw dstftw closed this Feb 5, 2014
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.