由于我在音乐制作中需要 VST 文件,我已经使用 ubuntu 作为我的日常驱动程序有一段时间了,最近我买了这台 ThinkPad。
无论如何,每当我尝试从 YouTube 下载某些内容时,都会出现此错误
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 905, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 797, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'/yts/jsbin/player-vflAmElk-/en_US/base.js'; 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(u"Cannot identify player u'/yts/jsbin/player-vflAmElk-/en_US/base.js'; 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.
我以前使用 ubuntu 12.04 时一直使用相同的代码。我错过了什么?
youtube-dl --extract-audio --audio-format mp3 <url>
答案1
等待解决方案 pip 安装解决了这个问题
sudo pip install --upgrade youtube-dl