All*_*lan 12 youtube youtube-dl
当我运行 youtube-dl 时,我收到下面的消息(很长)。有什么问题以及如何解决这个问题?它告诉我更新 youtube-dl 但我使用 youtube-dl 执行命令在终端中运行它 - 我不认为它实际上安装在我的电脑上。
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/snap/youtube-dl/4572/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1361, in _decrypt_signature
video_id, player_url, s
File "/snap/youtube-dl/4572/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1274, in _extract_signature_function
res = self._parse_sig_js(code)
File "/snap/youtube-dl/4572/lib/python3.6/site-packages/youtube_dl/extractor/youtube.py", line 1343, in _parse_sig_js
initial_function = jsi.extract_function(funcname)
File "/snap/youtube-dl/4572/lib/python3.6/site-packages/youtube_dl/jsinterp.py", line 245, in extract_function
raise ExtractorError('Could not find JS function %r' % funcname)
youtube_dl.utils.ExtractorError: Could not find JS function 'na'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError("Could not find JS function 'na'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how 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; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Run Code Online (Sandbox Code Playgroud)
更新:
推荐的解决方案是使用yt-dlp
原始回复:
这是几天前开始的一个已知问题,这里是 github 问题页面:
https://github.com/ytdl-org/youtube-dl/issues/30363
修复就在那里:
https://github.com/ytdl-org/youtube-dl/pull/30366/commits/1a091687c248b62c2f0a6070519bd78417828746
您将不得不等待下一个版本。
或者,如果您很着急,等不及下一个版本,您可以手动编辑安装中的“youtube.py”文件。
在我的安装中,该文件位于:
/usr/local/lib/python3.8/dist-packages/youtube_dl/extractor/youtube.py
Run Code Online (Sandbox Code Playgroud)
我手动替换了,然后重新下载。
| 归档时间: |
|
| 查看次数: |
37438 次 |
| 最近记录: |