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

RegexNotFoundError: Unable to extract Initial JS player signature function name #4312

Closed
rghammonds opened this issue Nov 26, 2014 · 1 comment
Closed

Comments

@rghammonds
Copy link

@rghammonds rghammonds commented Nov 26, 2014

As requested, here is the full output from >youtube-dl --verbose https://www.youtube.com/watch?v=1T5NuI6Ai-o

Not sure why the error message is repeated - but since you asked for everything ...

youtube-dl --verbose https://www.youtube.com/watch?v=1T5NuI6Ai-o
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=1T5NuI6Ai-o']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.11.09
[debug] Git HEAD: b11f75b
[debug] Python version 2.7.8 - Darwin-14.1.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.4.3, ffprobe 2.4.3
[debug] Proxy map: {}
[youtube] Confirming age
[youtube] 1T5NuI6Ai-o: Downloading webpage
[youtube] 1T5NuI6Ai-o: Downloading video info webpage
[youtube] 1T5NuI6Ai-o: Extracting video information
[youtube] 1T5NuI6Ai-o: Encrypted signatures detected.
[youtube] {22} signature length 43.40, html5 player en_US-vfl5_7-l5
[youtube] 1T5NuI6Ai-o: Downloading js player l5
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 539, in _decrypt_signature
video_id, player_url, s
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 453, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 514, in _parse_sig_js
'Initial JS player signature function name')
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 436, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.
(caused by RegexNotFoundError(u'Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; 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.',)); 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/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 539, in _decrypt_signature
video_id, player_url, s
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 453, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 514, in _parse_sig_js
'Initial JS player signature function name')
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 436, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract Initial JS player signature function name; 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/lib/python2.7/site-packages/youtube_dl/YoutubeDL.py", line 536, in extract_info
ie_result = ie.extract(url)
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 199, in extract
return self._real_extract(url)
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 934, in _real_extract
encrypted_sig, video_id, player_url, age_gate)
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 549, in _decrypt_signature
'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 539, in _decrypt_signature
video_id, player_url, s
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 453, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/youtube.py", line 514, in _parse_sig_js
'Initial JS player signature function name')
File "/usr/local/lib/python2.7/site-packages/youtube_dl/extractor/common.py", line 436, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract Initial JS player signature function name; 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.
(caused by RegexNotFoundError(u'Unable to extract \x1b[0;34mInitial JS player signature function name\x1b[0m; 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.',)); 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.

@phihag
Copy link
Contributor

@phihag phihag commented Nov 26, 2014

Thank you for the report. YouTube changed their player on November 13th, so you'll need at least youtube-dl 2014.11.13 to play all YouTube videos. See our FAQ if you have trouble updating.

@phihag phihag closed this Nov 26, 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.