Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YouTube] Unable to extract nsig jsi, ... #32848

Closed
AbdallahALSHARIQI opened this issue Jul 11, 2024 · 6 comments
Closed

[YouTube] Unable to extract nsig jsi, ... #32848

AbdallahALSHARIQI opened this issue Jul 11, 2024 · 6 comments

Comments

@AbdallahALSHARIQI
Copy link

AbdallahALSHARIQI commented Jul 11, 2024

youtube-dl --verbose "Video Link"
[1] 10720
abdallah@fedora:~$ [debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=8etXfQ0lxfk']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python 3.12.4 (CPython x86_64 64bit) - Linux-6.9.7-200.fc40.x86_64-x86_64-with-glibc2.39 - OpenSSL 3.2.1 30 Jan 2024 - glibc 2.39
[debug] exe versions: ffmpeg 6.1.1, ffprobe 6.1.1
[debug] Proxy map: {}
[youtube] 8etXfQ0lxfk: Downloading webpage
[debug] [youtube] Extracting signature function js_9ed4a7e1_105
[youtube] 8etXfQ0lxfk: Downloading player 9ed4a7e1
ERROR: Unable to extract nsig jsi, player_id, func_codefunction code (caused by RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player n function name\x1b[0m; please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; see https://github.com/ytdl-org/youtube-dl/#user-content-installation on how to update. Be sure to call youtube-dl with the --verbose option and include the complete output.')); please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; see https://github.com/ytdl-org/youtube-dl/#user-content-installation on how to update. Be sure to call youtube-dl with the --verbose option and include the complete output.
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/youtube.py", line 1637, in _decrypt_nsig
jsi, player_id, func_code = self._extract_n_function_code(video_id, player_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/youtube.py", line 1680, in _extract_n_function_code
func_name = self._extract_n_function_name(jscode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/youtube.py", line 1660, in _extract_n_function_name
func_name, idx = self._search_regex(
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/common.py", line 1101, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player n function name; please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; see https://github.com/ytdl-org/youtube-dl/#user-content-installation on how to update. Be sure to call youtube-dl with the --verbose option and include the complete output.
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/youtube.py", line 1637, in _decrypt_nsig
jsi, player_id, func_code = self._extract_n_function_code(video_id, player_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/youtube.py", line 1680, in _extract_n_function_code
func_name = self._extract_n_function_name(jscode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/youtube.py", line 1660, in _extract_n_function_name
func_name, idx = self._search_regex(
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/common.py", line 1101, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player n function name; please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; see https://github.com/ytdl-org/youtube-dl/#user-content-installation on how to update. Be sure to call youtube-dl with the --verbose option and include the complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/youtube_dl/YoutubeDL.py", line 858, in wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/youtube_dl/YoutubeDL.py", line 954, in __extract_info
ie_result = ie.extract(url)
^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/common.py", line 571, in extract
ie_result = self._real_extract(url)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/youtube.py", line 2108, in _real_extract
self._unthrottle_format_urls(video_id, player_url, dct)
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/youtube.py", line 1725, in _unthrottle_format_urls
n_response = decrypt_nsig(n_param)(n_param, video_id, player_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/youtube.py", line 1614, in inner
raise ret
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/youtube.py", line 1606, in inner
self._player_cache[cache_id] = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/youtube_dl/extractor/youtube.py", line 1639, in _decrypt_nsig
raise ExtractorError('Unable to extract nsig jsi, player_id, func_codefunction code', cause=e)
youtube_dl.utils.ExtractorError: Unable to extract nsig jsi, player_id, func_codefunction code (caused by RegexNotFoundError('Unable to extract \x1b[0;34mInitial JS player n function name\x1b[0m; please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; see https://github.com/ytdl-org/youtube-dl/#user-content-installation on how to update. Be sure to call youtube-dl with the --verbose option and include the complete output.')); please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; see https://github.com/ytdl-org/youtube-dl/#user-content-installation on how to update. Be sure to call youtube-dl with the --verbose option and include the complete output.

@AbdallahALSHARIQI AbdallahALSHARIQI changed the title How i can fix it and i check my system is update it and the yt-dlp is update to and those are updated How i can fix it and i check my system is update it and the yt-dlp is update to and those are updated i try several videos link's to Download but this error shown all time Jul 11, 2024
@viniciussantos45

This comment was marked as duplicate.

@AbdallahALSHARIQI

This comment was marked as resolved.

@dirkf
Copy link
Contributor

dirkf commented Jul 11, 2024

Use the template, following #30839.

Duplicate of #32842.

@dirkf dirkf closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2024
@dirkf dirkf changed the title How i can fix it and i check my system is update it and the yt-dlp is update to and those are updated i try several videos link's to Download but this error shown all time [YouTube] Unable to extract nsig jsi, ... Jul 11, 2024
@AbdallahALSHARIQI
Copy link
Author

where the solve i see you close ? try to fix your program and make a update on distros pakge and the users update the pakge via pakge manager and boom the problme has solved

@AbdallahALSHARIQI
Copy link
Author

تسوق امها انت وين الحل ولا سوي تحديث لـ حزمة برنامجك إصدار جديد يعني

@dirkf
Copy link
Contributor

dirkf commented Jul 12, 2024

#32848 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants