question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find JS function u'ur'

See original GitHub issue

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.06.23. If it’s not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I’ve verified and I assure that I’m running youtube-dl 2016.06.23

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other
$ /usr/local/bin/youtube-dl -v  https://www.youtube.com/watch?v=QL2CCeWZWQI
[debug] System config: []
[debug] User config: [u'-f', u'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4']
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=QL2CCeWZWQI']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.06.23
[debug] Python version 2.7.10 - Darwin-15.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.8.6, ffprobe 2.8.6
[debug] Proxy map: {}
[youtube] QL2CCeWZWQI: Downloading webpage
[youtube] QL2CCeWZWQI: Downloading video info webpage
[youtube] QL2CCeWZWQI: Extracting video information
[youtube] {22} signature length 40.43, html5 player en_US-vflkX1eCa
[youtube] QL2CCeWZWQI: Downloading player https://s.ytimg.com/yts/jsbin/player-en_US-vflkX1eCa/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 997, in _decrypt_signature
    video_id, player_url, s
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 912, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 975, in _parse_sig_js
    initial_function = jsi.extract_function(funcname)
  File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 241, in extract_function
    raise ExtractorError('Could not find JS function %r' % funcname)
ExtractorError: Could not find JS function u'ur'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by ExtractorError(u"Could not find JS function u'ur'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  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; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 997, in _decrypt_signature
    video_id, player_url, s
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 912, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 975, in _parse_sig_js
    initial_function = jsi.extract_function(funcname)
  File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 241, in extract_function
    raise ExtractorError('Could not find JS function %r' % funcname)
ExtractorError: Could not find JS function u'ur'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 676, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 343, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1570, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1007, in _decrypt_signature
    '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 997, in _decrypt_signature
    video_id, player_url, s
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 912, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 975, in _parse_sig_js
    initial_function = jsi.extract_function(funcname)
  File "/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py", line 241, in extract_function
    raise ExtractorError('Could not find JS function %r' % funcname)
ExtractorError: Could not find JS function u'ur'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by ExtractorError(u"Could not find JS function u'ur'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  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; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
...

---
### Description of your *issue*, suggested solution and other information

Tried to download this video: https://www.youtube.com/watch?v=QL2CCeWZWQI and always get the "Could not find JS function u'ur'" error. I've updated to the latest version and that has not resolved anything. Other videos are downloading fine.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:7

github_iconTop GitHub Comments

5reactions
jsbuenocommented, Jun 23, 2016

Same thing around here.

3reactions
dathancommented, Jun 23, 2016

Also have this same issue:

/usr/local/bin/youtube-dl -v --verbose --socket-timeout 10 --max-filesize 500m -o ‘/mnt/ephemeral/workspace/youtubeJ5dYZ6HuOV’ -f ‘bestvideo[ext=mp4][height<=240]+bestaudio[ext=m4a]’ https://www.youtube.com/watch?v=QxsmWxxouIM Mem: 5.5 MB [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u’-v’, u’–verbose’, u’–socket-timeout’, u’10’, u’–max-filesize’, u’500m’, u’-o’, u’/mnt/ephemeral/workspace/youtubeJ5dYZ6HuOV’, u’-f’, u’bestvideo[ext=mp4][height<=240]+bestaudio[ext=m4a]‘, u’https://www.youtube.com/watch?v=QxsmWxxouIM’] [debug] Encodings: locale UTF-8, fs UTF-8, out None, pref UTF-8 [debug] youtube-dl version 2016.05.01 [debug] Python version 2.6.6 - Linux-2.6.32-358.14.1.el6.x86_64-x86_64-with-redhat-6.7-Santiago [debug] exe versions: avprobe v12_dev0-2090-g4d05e93, ffmpeg git-2016-05-10-6c44696, ffprobe git-2016-05-10-6c44696 [debug] Proxy map: {} ERROR: Signature extraction failed: Traceback (most recent call last): File “/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py”, line 995, in _decrypt_signature video_id, player_url, s File “/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py”, line 910, in _extract_signature_function res = self._parse_sig_js(code) File “/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py”, line 973, in _parse_sig_js initial_function = jsi.extract_function(funcname) File “/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py”, line 241, in extract_function raise ExtractorError(‘Could not find JS function %r’ % funcname) ExtractorError: Could not find JS function u’ur’; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. (caused by ExtractorError(u"Could not find JS function u’ur’; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U 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; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. Traceback (most recent call last): File “/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py”, line 995, in _decrypt_signature video_id, player_url, s File “/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py”, line 910, in _extract_signature_function res = self._parse_sig_js(code) File “/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py”, line 973, in _parse_sig_js initial_function = jsi.extract_function(funcname) File “/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py”, line 241, in extract_function raise ExtractorError(‘Could not find JS function %r’ % funcname) ExtractorError: Could not find JS function u’ur’; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. Traceback (most recent call last): File “/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py”, line 673, in extract_info ie_result = ie.extract(url) File “/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py”, line 341, in extract return self._real_extract(url) File “/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py”, line 1568, in _real_extract encrypted_sig, video_id, player_url, age_gate) File “/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py”, line 1005, in _decrypt_signature ‘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 995, in _decrypt_signature video_id, player_url, s File “/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py”, line 910, in _extract_signature_function res = self._parse_sig_js(code) File “/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py”, line 973, in _parse_sig_js initial_function = jsi.extract_function(funcname) File “/usr/local/bin/youtube-dl/youtube_dl/jsinterp.py”, line 241, in extract_function raise ExtractorError(‘Could not find JS function %r’ % funcname) ExtractorError: Could not find JS function u’ur’; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. (caused by ExtractorError(u"Could not find JS function u’ur’; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U 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; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Read more comments on GitHub >

github_iconTop Results From Across the Web

youtube_dl.utils.ExtractorError: Could not find JS function 'na'
Checklist I'm reporting a broken site support issue I've verified that I'm running youtube-dl version 2021.06.06 I've checked that all ...
Read more >
python - raise ExtractorError('Could not find JS function %r ...
I was having this exact same problem on version 2021.6.6 which I was using but decided to upgrade using this command:
Read more >
Can't find Javascript function - MSDN
This is the error that I am getting on the calculate function. I have tried moving it different places and I get the...
Read more >
make variable based on regex/javascript from complicated datalayer ...
Now this is a total guess where the info can be found. ... But if your dev team can't, you can parse it...
Read more >
The stock market could soon see a massive change to how it ...
The agency that oversees Wall Street is weighing major changes to the way millions of everyday investors buy and sell stocks. That could...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found