尝试使用youtube-dl和许多不同类型的YouTube视频,我不断收到“无法下载视频信息网页:HTTP错误500:内部服务器错误”消息:
>youtube-dl 'http://www.youtube.com/watch?v=t-eWAc1Knlw' -v
[debug] youtube-dl version 2013.02.02
[debug] Python version 2.7.3
[debug] Proxy map: {}
[youtube] Setting language
[youtube] t-eWAc1Knlw: Downloading video webpage
[youtube] t-eWAc1Knlw: Downloading video info webpage
ERROR: unable to download video info webpage: HTTP Error 500: Internal Server Error
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/bin/youtube-dl/__main__.py", line 17, in <module>
youtube_dl.main()
File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 512, in main
_real_main()
File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 496, in _real_main
retcode = fd.download(all_urls)
File "/usr/bin/youtube-dl/youtube_dl/FileDownloader.py", line 505, in download
videos = ie.extract(url)
File "/usr/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 93, in extract
return self._real_extract(url)
File "/usr/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 397, in _real_extract
self._downloader.trouble(u'ERROR: unable to download video info webpage: %s' % compat_str(err))
File "/usr/bin/youtube-dl/youtube_dl/FileDownloader.py", line 230, in trouble
tb_data = traceback.format_list(traceback.extract_stack())
我已经将youtube-dl更新为版本2013.02.02(最新版本),通过使用--update选项运行它,但它仍会产生相同的错误。
答案 0 :(得分:2)
请重新安装youtube-dl
sudo curl https://yt-dl.org/downloads/2014.03.03/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
答案 1 :(得分:1)
尝试重新安装youtube-dl
1.update first
sudo apt-get update
2.然后删除现有的youtube-dl
sudo apt-get remove youtube-dl
3.然后重新安装
sudo apt-get install youtube-dl
您现在可以再次通过youtube-dl下载YouTube视频
答案 2 :(得分:0)
我试过你的答案
“sudo curl https://yt-dl.org/downloads/2014.03.03/youtube-dl -o / usr / local / bin / youtube-dl
sudo chmod a + x / usr / local / bin / youtube-dl“
当我尝试下载视频时停在这里并且只是坐着
[youtube] B07iK9uh9qY:正在下载js player vfl4_saJa
我尝试了几个不同的视频
更新:
我跑了/ usr / local / bin / youtube-dl -U
现在它再次下载视频。谢谢你的帮助:)