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.

[youtube] nsig extraction failed

See original GitHub issue

Checklist

Region

United States

Description

Download still succeeds, just throttled again.

Verbose log

$ yt-dlp -vU --no-download https://www.youtube.com/watch?v=VzqN4Cn8r3U
[debug] Command-line config: ['-vU', '--no-download', 'https://www.youtube.com/watch?v=VzqN4Cn8r3U']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.01.21 [f20d607b0] (zip)
[debug] Python version 3.10.1 (CPython 64bit) - Linux-5.14.21-2-MANJARO-x86_64-with-glibc2.33
[debug] exe versions: ffmpeg 4.4.1 (setts), ffprobe 4.4.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome, secretstorage, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.01.21, Current version: 2022.01.21
yt-dlp is up to date (2022.01.21)
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=VzqN4Cn8r3U
[youtube] VzqN4Cn8r3U: Downloading webpage
[youtube] VzqN4Cn8r3U: Downloading android player API JSON
[youtube] VzqN4Cn8r3U: Downloading player e06dea74
WARNING: [youtube] nsig extraction failed: You may experience throttling for some formats
n = 2rWZ998KTlsmBLexbl ; player = https://www.youtube.com/s/player/e06dea74/player_ias.vflset/en_US/base.js
VzqN4Cn8r3U: Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/youtube.py", line 2412, in _decrypt_nsig
    self._player_cache[player_id] = self._extract_n_function(video_id, player_url)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/youtube.py", line 2433, in _extract_n_function
    funcname = self._extract_n_function_name(jscode)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/youtube.py", line 2421, in _extract_n_function_name
    return self._search_regex(
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 1186, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
yt_dlp.utils.RegexNotFoundError: Unable to extract Initial JS player n function name; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
 (caused by RegexNotFoundError('Unable to extract \x1b[0;94mInitial JS player n function name\x1b[0m; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.')); please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:vp9.2, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] VzqN4Cn8r3U: Downloading 1 format(s): 315+251

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pukkandancommented, Mar 13, 2022

@aasdfasdfg The issue is already fixed. You just need to update

0reactions
aasdfasdfgcommented, Mar 13, 2022

Sorry for posting on an old issue, and for reporting something on an old version of yt-dlp, but I ran into a similar error just now and I am in a rush - so I can’t do the full due diligence before filing a new issue right now. So I am leaving this comment with enough info to either revisit it later myself, or at the very least leave enough breadcrumbs for someone else in case I don’t get around to that myself.

yt-dlp rMIEPkaadq0
[youtube] rMIEPkaadq0: Downloading webpage
[youtube] rMIEPkaadq0: Downloading android player API JSON
[youtube] rMIEPkaadq0: Downloading player 87b9576a
WARNING: [youtube] nsig extraction failed: You may experience throttling for some formats
n = sSFow21YhNN4l1Fxsx ; player = https://www.youtube.com/s/player/87b9576a/player_ias.vflset/en_US/base.js
rMIEPkaadq0: Traceback (most recent call last):
  File "/usr/local/Cellar/yt-dlp/2021.12.27/libexec/lib/python3.10/site-packages/yt_dlp/extractor/youtube.py", line 2095, in _decrypt_nsig
    self._player_cache[player_id] = self._extract_n_function(video_id, player_url)
  File "/usr/local/Cellar/yt-dlp/2021.12.27/libexec/lib/python3.10/site-packages/yt_dlp/extractor/youtube.py", line 2116, in _extract_n_function
    funcname = self._extract_n_function_name(jscode)
  File "/usr/local/Cellar/yt-dlp/2021.12.27/libexec/lib/python3.10/site-packages/yt_dlp/extractor/youtube.py", line 2104, in _extract_n_function_name
    return self._search_regex(
  File "/usr/local/Cellar/yt-dlp/2021.12.27/libexec/lib/python3.10/site-packages/yt_dlp/extractor/common.py", line 1173, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
yt_dlp.utils.RegexNotFoundError: Unable to extract Initial JS player n function name; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; see  https://github.com/yt-dlp/yt-dlp  on how to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
 (caused by RegexNotFoundError('Unable to extract \x1b[0;94mInitial JS player n function name\x1b[0m; please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; see  https://github.com/yt-dlp/yt-dlp  on how to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.')); please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; see  https://github.com/yt-dlp/yt-dlp  on how to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
[info] rMIEPkaadq0: Downloading 1 format(s): 303+251
Read more comments on GitHub >

github_iconTop Results From Across the Web

[youtube] nsig extraction failed: You may experience throttling ...
The issue was that the more complex nsig decryption function now includes curly braces inside strings, which the findNextParenthesis function ...
Read more >
yt-dlp downloads are suddenly very slow, mentioning "nsig ...
yt-dlp downloads are suddenly very slow, mentioning "nsig extraction failed" & "throttling". Why is this? · If using Windows, download and ...
Read more >
youtube-dl failed to extract signature - Ask Ubuntu
You are getting this error: Unable to extract Initial JS player signature function name ...because youtube-dl is not up-to-date. Google has been changing ......
Read more >
Porteus switched from youtube-dl to yt-dlp - Page 2
WARNING: [youtube] yMXL4NiKJ0A: nsig extraction failed: You may experience throttling for some formats Install PhantomJS to workaround the ...
Read more >
youtube-dl fails on some music videos (Signature extraction ...
Hello I'm having a yt-dl bug from when I go to! Download failed for https/www.youtube.com/watch?v=bW0cLEFkSlE; exit status 1 I downloaded ...
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