[youtube] nsig extraction failed
See original GitHub issueChecklist
- I’m reporting a broken site
- I’ve verified that I’m running yt-dlp version 2022.01.21. (update instructions)
- I’ve checked that all provided URLs are alive and playable in a browser
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
- I’ve read about sharing account credentials and I’m willing to share it if required
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:
- Created 2 years ago
- Comments:10 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@aasdfasdfg The issue is already fixed. You just need to update
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.