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

ERROR: Unable to decrypt signature, key length 89 not supported #1232

Closed
gitinwhereyoufitin opened this issue Aug 12, 2013 · 3 comments
Closed

ERROR: Unable to decrypt signature, key length 89 not supported #1232

gitinwhereyoufitin opened this issue Aug 12, 2013 · 3 comments

Comments

@gitinwhereyoufitin
Copy link

@gitinwhereyoufitin gitinwhereyoufitin commented Aug 12, 2013

youtube-dl --verbose http://www.youtube.com/watch?v=am9BqZ6eA5c

[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.youtube.com/watch?v=am9BqZ6eA5c']
[debug] youtube-dl version 2013.07.12
[debug] Python version 2.6.6 - Linux-2.6.<...SNIP...>-x86_64<...SNIP...>
[debug] Proxy map: {}
[youtube] Setting language
[youtube] am9BqZ6eA5c: Downloading video webpage
[youtube] am9BqZ6eA5c: Downloading video info webpage
[youtube] am9BqZ6eA5c: Extracting video information
[youtube] am9BqZ6eA5c: Encrypted signatures detected.
[youtube] encrypted signature length 89 (44.44), itag 44, html5 player vfl_wGgYV
ERROR: Unable to decrypt signature, key length 89 not supported; retrying might work; 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/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 312, in extract_info
ie_result = ie.extract(url)
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 95, in extract
return self._real_extract(url)
File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 594, in _real_extract
signature = self._decrypt_signature(url_data['s'][0])
File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 200, in _decrypt_signature
raise ExtractorError(u'Unable to decrypt signature, key length %d not supported; retrying might work' % (len(s)))
ExtractorError: Unable to decrypt signature, key length 89 not supported; retrying might work; 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.

@phihag
Copy link
Contributor

@phihag phihag commented Aug 12, 2013

You're using an outdated version of youtube-dl. Type

 sudo youtube-dl -U

to update.

@phihag phihag closed this Aug 12, 2013
@xiaose
Copy link

@xiaose xiaose commented Aug 12, 2013

Thank you very much.
Now everything is working perfectly, as it should be.

PS. what was the problem there? Why is that issue appeared only at US? For US Google gives video somehow different?

@phihag
Copy link
Contributor

@phihag phihag commented Aug 12, 2013

YouTube added the signatures and is constantly switching around schemes for monetized videos (there are suggestion to how avoid this, but they haven't been integrated into youtube-dl yet). The choice which algorithm to use seems to depend on the internal version of the YouTube code as well as the specific cluster that serves the video, so most likely only the US location had the code and decided to use the 89 signature scheme, whereas the other ones either didn't have support for 89 or selected other schemes at random.

SthephanShinkufag referenced this issue in SthephanShinkufag/Dollchan-Extension-Tools Feb 14, 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
3 participants
You can’t perform that action at this time.