[Youtube] RegexNotFoundError: Unable to extract Initial JS player signature function name #4603

Closed
opened 2026-02-21 00:20:17 -05:00 by deekerman · 2 comments
Owner

Originally created by @hub187 on GitHub (May 3, 2015).

I am getting a "[Youtube] RegexNotFoundError: Unable to extract Initial JS player signature function name" error with latest version of youtube-dl.

This is similar another issue that was apparently resolved by updating to latest version. "[Youtube] RegexNotFoundError: Unable to extract Initial JS player signature function name #5546 "

Obviously happy to provide assistance in getting this fixed if needed. I am sorry if I missed something obvious and this is not a bug also!!

TRACE IN VERBOSE (using debian Jessie 64bits):

leonard@debian8:~/Dropbox/Music$ youtube-dl --extract-audio --audio-format mp3 --verbose "https://www.youtube.com/watch?feature=player_detailpage&v=D0TnJUsoR7s"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--extract-audio', '--audio-format', 'mp3', '--verbose', 'https://www.youtube.com/watch?feature=player_detailpage&v=D0TnJUsoR7s']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.08.05
[debug] Python version 2.7.9 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.0
[debug] Proxy map: {}
[youtube] Setting language
[youtube] D0TnJUsoR7s: Downloading webpage
[youtube] D0TnJUsoR7s: Downloading video info webpage
[youtube] D0TnJUsoR7s: Extracting video information
[youtube] D0TnJUsoR7s: Encrypted signatures detected.
[youtube] {22} signature length 43.43, html5 player en_US-vflheTb7D
[youtube] D0TnJUsoR7s: Downloading js player vflheTb7D
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 383, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 454, in _parse_sig_js
u'Initial JS player signature function name')
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 391, in _search_regex
raise RegexNotFoundError(u'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.
; 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/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 383, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 454, in _parse_sig_js
u'Initial JS player signature function name')
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 391, in _search_regex
raise RegexNotFoundError(u'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/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 516, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 170, in extract
return self._real_extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 860, in _real_extract
encrypted_sig, video_id, player_url, age_gate)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 489, in _decrypt_signature
u'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 383, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 454, in _parse_sig_js
u'Initial JS player signature function name')
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 391, in _search_regex
raise RegexNotFoundError(u'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.
; 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.

Originally created by @hub187 on GitHub (May 3, 2015). I am getting a "[Youtube] RegexNotFoundError: Unable to extract Initial JS player signature function name" error with latest version of youtube-dl. This is similar another issue that was apparently resolved by updating to latest version. "[Youtube] RegexNotFoundError: Unable to extract Initial JS player signature function name #5546 " Obviously happy to provide assistance in getting this fixed if needed. I am sorry if I missed something obvious and this is not a bug also!! TRACE IN VERBOSE (using debian Jessie 64bits): leonard@debian8:~/Dropbox/Music$ youtube-dl --extract-audio --audio-format mp3 --verbose "https://www.youtube.com/watch?feature=player_detailpage&v=D0TnJUsoR7s" [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['--extract-audio', '--audio-format', 'mp3', '--verbose', 'https://www.youtube.com/watch?feature=player_detailpage&v=D0TnJUsoR7s'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2014.08.05 [debug] Python version 2.7.9 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.0 [debug] Proxy map: {} [youtube] Setting language [youtube] D0TnJUsoR7s: Downloading webpage [youtube] D0TnJUsoR7s: Downloading video info webpage [youtube] D0TnJUsoR7s: Extracting video information [youtube] D0TnJUsoR7s: Encrypted signatures detected. [youtube] {22} signature length 43.43, html5 player en_US-vflheTb7D [youtube] D0TnJUsoR7s: Downloading js player vflheTb7D ERROR: Signature extraction failed: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature video_id, player_url, s File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 383, in _extract_signature_function res = self._parse_sig_js(code) File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 454, in _parse_sig_js u'Initial JS player signature function name') File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 391, in _search_regex raise RegexNotFoundError(u'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. ; 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/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature video_id, player_url, s File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 383, in _extract_signature_function res = self._parse_sig_js(code) File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 454, in _parse_sig_js u'Initial JS player signature function name') File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 391, in _search_regex raise RegexNotFoundError(u'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/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 516, in extract_info ie_result = ie.extract(url) File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 170, in extract return self._real_extract(url) File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 860, in _real_extract encrypted_sig, video_id, player_url, age_gate) File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 489, in _decrypt_signature u'Signature extraction failed: ' + tb, cause=e) ExtractorError: Signature extraction failed: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature video_id, player_url, s File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 383, in _extract_signature_function res = self._parse_sig_js(code) File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 454, in _parse_sig_js u'Initial JS player signature function name') File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 391, in _search_regex raise RegexNotFoundError(u'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. ; 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.
Author
Owner

@jaimeMF commented on GitHub (May 3, 2015):

You are using an outdated version of youtube-dl. Read our FAQ if you have trouble updating.

@jaimeMF commented on GitHub (May 3, 2015): You are using an outdated version of youtube-dl. Read [our FAQ](https://yt-dl.org/update) if you have trouble updating.
Author
Owner

@hub187 commented on GitHub (May 3, 2015):

Many thanks. I downloaded the zip from the main page which was not the "latest" version indeed!!

Sorry for missing this out!

@hub187 commented on GitHub (May 3, 2015): Many thanks. I downloaded the zip from the main page which was not the "latest" version indeed!! Sorry for missing this out!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#4603
No description provided.