ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.89k stars 10k forks source link

Unable to extract nsig jsi, #32935

Closed xvtstephen closed 2 weeks ago

xvtstephen commented 2 weeks ago

Checklist

Verbose log

PASTE VERBOSE LOG HERE

~/Downloads/youtube-dl$ ./youtube-dl -F https://youtu.be/aGFstiSgxCo?si=2AwUlwMEMfHtLW2U --verbose [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['-F', 'https://youtu.be/aGFstiSgxCo?si=2AwUlwMEMfHtLW2U', '--verbose'] [debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8 [debug] youtube-dl version 2024.01.23 [dc512e3a8] (single file build) [debug] This version was built from the latest master code at https://github.com/ytdl-org/youtube-dl. [debug] For support, visit the main site. [debug] Python 3.12.3 (CPython x86_64 64bit) - Linux-6.8.0-45-generic-x86_64-with-glibc2.39 - OpenSSL 3.0.13 30 Jan 2024 - glibc 2.39 [debug] exe versions: none [debug] Proxy map: {} [youtube] aGFstiSgxCo: Downloading webpage [youtube] aGFstiSgxCo: Downloading player b0557ce3 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://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 "/home/stephen/Downloads/youtube-dl/./youtube-dl/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 "/home/stephen/Downloads/youtube-dl/./youtube-dl/youtube_dl/extractor/youtube.py", line 1680, in _extract_n_function_code func_name = self._extract_n_function_name(jscode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stephen/Downloads/youtube-dl/./youtube-dl/youtube_dl/extractor/youtube.py", line 1660, in _extract_n_function_name func_name, idx = self._search_regex( ^^^^^^^^^^^^^^^^^^^ File "/home/stephen/Downloads/youtube-dl/./youtube-dl/youtube_dl/extractor/common.py", line 1095, 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://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 "/home/stephen/Downloads/youtube-dl/./youtube-dl/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 "/home/stephen/Downloads/youtube-dl/./youtube-dl/youtube_dl/extractor/youtube.py", line 1680, in _extract_n_function_code func_name = self._extract_n_function_name(jscode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stephen/Downloads/youtube-dl/./youtube-dl/youtube_dl/extractor/youtube.py", line 1660, in _extract_n_function_name func_name, idx = self._search_regex( ^^^^^^^^^^^^^^^^^^^ File "/home/stephen/Downloads/youtube-dl/./youtube-dl/youtube_dl/extractor/common.py", line 1095, 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://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.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/stephen/Downloads/youtube-dl/./youtube-dl/youtube_dl/YoutubeDL.py", line 863, in wrapper return func(self, *args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stephen/Downloads/youtube-dl/./youtube-dl/youtube_dl/YoutubeDL.py", line 959, in __extract_info ie_result = ie.extract(url) ^^^^^^^^^^^^^^^ File "/home/stephen/Downloads/youtube-dl/./youtube-dl/youtube_dl/extractor/common.py", line 565, in extract ie_result = self._real_extract(url) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stephen/Downloads/youtube-dl/./youtube-dl/youtube_dl/extractor/youtube.py", line 2108, in _real_extract self._unthrottle_format_urls(video_id, player_url, dct) File "/home/stephen/Downloads/youtube-dl/./youtube-dl/youtube_dl/extractor/youtube.py", line 1725, in _unthrottle_format_urls n_response = decrypt_nsig(n_param)(n_param, video_id, player_url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stephen/Downloads/youtube-dl/./youtube-dl/youtube_dl/extractor/youtube.py", line 1614, in inner raise ret File "/home/stephen/Downloads/youtube-dl/./youtube-dl/youtube_dl/extractor/youtube.py", line 1606, in inner self._player_cache[cache_id] = func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/home/stephen/Downloads/youtube-dl/./youtube-dl/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://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

WRITE DESCRIPTION HERE I am using a ytl which works on another box. this is probably some module missing on this box, but it does not say so in the error.

xvtstephen commented 2 weeks ago

got the nightly build and hacked it to work.

xvtstephen commented 2 weeks ago

copied youtube-dl from bin to the top level dir.