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

Fails to download certain youtube videos with "Signature extraction failed" error #3674

Closed
alexbhandari opened this issue Sep 4, 2014 · 1 comment

Comments

@alexbhandari
Copy link

@alexbhandari alexbhandari commented Sep 4, 2014

Fails only on certain videos. Using version: 2014.09.04
Failed with www.youtube.com/watch?v=V_XxpMD0wa4 and https://www.youtube.com/watch?v=O0vf2EfesOA

If someone can try downloading those two videos and post whether this is a general bug or something only I am experiencing that would be awesome! Thanks!

youtube-dl www.youtube.com/watch?v=V_XxpMD0wa4 --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['www.youtube.com/watch?v=V_XxpMD0wa4', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.09.04
[debug] Python version 2.7.7 - Darwin-14.0.0-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] Setting language
[youtube] Confirming age
[youtube] V_XxpMD0wa4: Downloading webpage
[youtube] V_XxpMD0wa4: Downloading video info webpage
[youtube] V_XxpMD0wa4: Extracting video information
[youtube] V_XxpMD0wa4: Encrypted signatures detected.
[youtube] {22} signature length 40.41, html5 player en_US-vflqxvClr
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 530, in _decrypt_signature
    video_id, player_url, s
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 435, in _extract_signature_function
    cache_spec = self._downloader.cache.load(u'youtube-sigfuncs', func_id)
  File "/usr/local/bin/youtube-dl/youtube_dl/cache.py", line 62, in load
    cache_fn = self._get_cache_fn(section, key, dtype)
  File "/usr/local/bin/youtube-dl/youtube_dl/cache.py", line 29, in _get_cache_fn
    assert re.match(r'^[a-zA-Z0-9_-]+$', key)
AssertionError
; 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.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 530, in _decrypt_signature
    video_id, player_url, s
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 435, in _extract_signature_function
    cache_spec = self._downloader.cache.load(u'youtube-sigfuncs', func_id)
  File "/usr/local/bin/youtube-dl/youtube_dl/cache.py", line 62, in load
    cache_fn = self._get_cache_fn(section, key, dtype)
  File "/usr/local/bin/youtube-dl/youtube_dl/cache.py", line 29, in _get_cache_fn
    assert re.match(r'^[a-zA-Z0-9_-]+$', key)
AssertionError
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 523, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 178, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 915, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 540, in _decrypt_signature
    u'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 530, in _decrypt_signature
    video_id, player_url, s
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 435, in _extract_signature_function
    cache_spec = self._downloader.cache.load(u'youtube-sigfuncs', func_id)
  File "/usr/local/bin/youtube-dl/youtube_dl/cache.py", line 62, in load
    cache_fn = self._get_cache_fn(section, key, dtype)
  File "/usr/local/bin/youtube-dl/youtube_dl/cache.py", line 29, in _get_cache_fn
    assert re.match(r'^[a-zA-Z0-9_-]+$', key)
AssertionError
; 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.
@alexbhandari alexbhandari changed the title Fails to download certain youtube video with "Signature extraction failed" error Fails to download certain youtube videos with "Signature extraction failed" error Sep 4, 2014
@phihag phihag closed this in 674c869 Sep 4, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Sep 4, 2014

Thank you for the report. I apologize for the mistake, I did not take into account all kinds of characters in cache keys. This should be fixed in youtube-dl 2014.09.04.1. Type youtube-dl -U to update.

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.