youtube_dl.utils.ExtractorError: Could not find JS function 'wr' #8170

Closed
opened 2026-02-21 03:05:48 -05:00 by deekerman · 3 comments
Owner

Originally created by @jrkt on GitHub (Jun 29, 2016).

Command: youtube-dl --extract-audio --audio-format mp3 -o /tmp/audio-ae3ea995a7ceee315634ac9c5aa36fc8.mp3 https://www.youtube.com/watch?v=-xNZzaLSguo

Verbose Output:
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Command-line args: ['-x', '--extract-audio', '--audio-format', 'mp3', '-o', '/home/jstevens/Development/Projects/Velocity9/client/tmp/audio-ae3ea995a7ceee315634ac9c5aa36fc8.mp3', 'https://www.youtube.com/watch?v=-xNZzaLSguo', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.06.03
[debug] Python version 3.4.3 - Linux-4.5.7-200.fc23.x86_64-x86_64-with-fedora-23-Twenty_Three
[debug] exe versions: ffmpeg 2.8.7, ffprobe 2.8.7
[debug] Proxy map: {}
[youtube] -xNZzaLSguo: Downloading webpage
[youtube] -xNZzaLSguo: Downloading video info webpage
[youtube] -xNZzaLSguo: Extracting video information
[youtube] {22} signature length 40.45, html5 player en_US-vflOfyD_m
[youtube] -xNZzaLSguo: Downloading player https://s.ytimg.com/yts/jsbin/player-en_US-vflOfyD_m/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 995, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 910, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 973, in _parse_sig_js
initial_function = jsi.extract_function(funcname)
File "/usr/lib/python3.4/site-packages/youtube_dl/jsinterp.py", line 241, in extract_function
raise ExtractorError('Could not find JS function %r' % funcname)
youtube_dl.utils.ExtractorError: Could not find JS function 'wr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError("Could not find JS function 'wr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 995, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 910, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 973, in _parse_sig_js
initial_function = jsi.extract_function(funcname)
File "/usr/lib/python3.4/site-packages/youtube_dl/jsinterp.py", line 241, in extract_function
raise ExtractorError('Could not find JS function %r' % funcname)
youtube_dl.utils.ExtractorError: Could not find JS function 'wr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 995, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 910, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 973, in _parse_sig_js
initial_function = jsi.extract_function(funcname)
File "/usr/lib/python3.4/site-packages/youtube_dl/jsinterp.py", line 241, in extract_function
raise ExtractorError('Could not find JS function %r' % funcname)
youtube_dl.utils.ExtractorError: Could not find JS function 'wr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 676, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 341, in extract
return self._real_extract(url)
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 1568, in _real_extract
encrypted_sig, video_id, player_url, age_gate)
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 1005, in _decrypt_signature
'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 995, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 910, in _extract_signature_function
res = self._parse_sig_js(code)
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 973, in _parse_sig_js
initial_function = jsi.extract_function(funcname)
File "/usr/lib/python3.4/site-packages/youtube_dl/jsinterp.py", line 241, in extract_function
raise ExtractorError('Could not find JS function %r' % funcname)
youtube_dl.utils.ExtractorError: Could not find JS function 'wr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError("Could not find JS function 'wr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Verified:
I am on 2016.06.27
Linux version is Fedora 23 which I just updated

Originally created by @jrkt on GitHub (Jun 29, 2016). Command: youtube-dl --extract-audio --audio-format mp3 -o /tmp/audio-ae3ea995a7ceee315634ac9c5aa36fc8.mp3 https://www.youtube.com/watch?v=-xNZzaLSguo Verbose Output: [debug] System config: ['--prefer-free-formats'] [debug] User config: [] [debug] Command-line args: ['-x', '--extract-audio', '--audio-format', 'mp3', '-o', '/home/jstevens/Development/Projects/Velocity9/client/tmp/audio-ae3ea995a7ceee315634ac9c5aa36fc8.mp3', 'https://www.youtube.com/watch?v=-xNZzaLSguo', '--verbose'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2016.06.03 [debug] Python version 3.4.3 - Linux-4.5.7-200.fc23.x86_64-x86_64-with-fedora-23-Twenty_Three [debug] exe versions: ffmpeg 2.8.7, ffprobe 2.8.7 [debug] Proxy map: {} [youtube] -xNZzaLSguo: Downloading webpage [youtube] -xNZzaLSguo: Downloading video info webpage [youtube] -xNZzaLSguo: Extracting video information [youtube] {22} signature length 40.45, html5 player en_US-vflOfyD_m [youtube] -xNZzaLSguo: Downloading player https://s.ytimg.com/yts/jsbin/player-en_US-vflOfyD_m/base.js ERROR: Signature extraction failed: Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 995, in _decrypt_signature video_id, player_url, s File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 910, in _extract_signature_function res = self._parse_sig_js(code) File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 973, in _parse_sig_js initial_function = jsi.extract_function(funcname) File "/usr/lib/python3.4/site-packages/youtube_dl/jsinterp.py", line 241, in extract_function raise ExtractorError('Could not find JS function %r' % funcname) youtube_dl.utils.ExtractorError: Could not find JS function 'wr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. (caused by ExtractorError("Could not find JS function 'wr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 995, in _decrypt_signature video_id, player_url, s File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 910, in _extract_signature_function res = self._parse_sig_js(code) File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 973, in _parse_sig_js initial_function = jsi.extract_function(funcname) File "/usr/lib/python3.4/site-packages/youtube_dl/jsinterp.py", line 241, in extract_function raise ExtractorError('Could not find JS function %r' % funcname) youtube_dl.utils.ExtractorError: Could not find JS function 'wr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 995, in _decrypt_signature video_id, player_url, s File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 910, in _extract_signature_function res = self._parse_sig_js(code) File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 973, in _parse_sig_js initial_function = jsi.extract_function(funcname) File "/usr/lib/python3.4/site-packages/youtube_dl/jsinterp.py", line 241, in extract_function raise ExtractorError('Could not find JS function %r' % funcname) youtube_dl.utils.ExtractorError: Could not find JS function 'wr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 676, in extract_info ie_result = ie.extract(url) File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 341, in extract return self._real_extract(url) File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 1568, in _real_extract encrypted_sig, video_id, player_url, age_gate) File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 1005, in _decrypt_signature 'Signature extraction failed: ' + tb, cause=e) youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 995, in _decrypt_signature video_id, player_url, s File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 910, in _extract_signature_function res = self._parse_sig_js(code) File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 973, in _parse_sig_js initial_function = jsi.extract_function(funcname) File "/usr/lib/python3.4/site-packages/youtube_dl/jsinterp.py", line 241, in extract_function raise ExtractorError('Could not find JS function %r' % funcname) youtube_dl.utils.ExtractorError: Could not find JS function 'wr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. (caused by ExtractorError("Could not find JS function 'wr'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. Verified: I am on 2016.06.27 Linux version is Fedora 23 which I just updated
Author
Owner

@dstftw commented on GitHub (Jun 30, 2016):

[debug] youtube-dl version 2016.06.03

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

@dstftw commented on GitHub (Jun 30, 2016): > [debug] youtube-dl version 2016.06.03 You are using an outdated version of youtube-dl. Read [our FAQ](https://yt-dl.org/update) if you have troubles updating.
Author
Owner

@jrkt commented on GitHub (Jun 30, 2016):

If I do youtube-dl --version it shows that I am running 2016.06.27. Why is
that not accurate?
On Jun 29, 2016 10:18 PM, "Sergey M." notifications@github.com wrote:

[debug] youtube-dl version 2016.06.03

You are using an outdated version of youtube-dl. Read our FAQ
https://yt-dl.org/update if you have troubles updating.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rg3/youtube-dl/issues/9952#issuecomment-229555635,
or mute the thread
https://github.com/notifications/unsubscribe/AGPvcyATVv4Zy0nQ4nQnDSP1YfwJ9JpEks5qQ0ONgaJpZM4JBxQV
.

@jrkt commented on GitHub (Jun 30, 2016): If I do youtube-dl --version it shows that I am running 2016.06.27. Why is that not accurate? On Jun 29, 2016 10:18 PM, "Sergey M." notifications@github.com wrote: > [debug] youtube-dl version 2016.06.03 > > You are using an outdated version of youtube-dl. Read our FAQ > https://yt-dl.org/update if you have troubles updating. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > https://github.com/rg3/youtube-dl/issues/9952#issuecomment-229555635, > or mute the thread > https://github.com/notifications/unsubscribe/AGPvcyATVv4Zy0nQ4nQnDSP1YfwJ9JpEks5qQ0ONgaJpZM4JBxQV > .
Author
Owner

@yan12125 commented on GitHub (Jun 30, 2016):

Most likely you have multiple youtube-dl versions installed.

@yan12125 commented on GitHub (Jun 30, 2016): Most likely you have multiple youtube-dl versions installed.
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#8170
No description provided.