前言
youtube-dl 的python官方安装包好久没更新了,但它的github一直在更新。所以我们直接同步github吧。
遇到的问题
[youtube] 6_gLU_OStK0: Downloading webpage
ERROR: Unable to extract uploader id; 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.
更新
## 下载git仓库
git clone https://github.com/ytdl-org/youtube-dl
tmp_path=`python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
## 备份原来的目录
mv $tmp_path/youtube_dl $tmp_path/youtube_dl_back
## cp覆盖
cp -r youtube-dl/youtube_dl $tmp_path/youtube_dl
注:tesk ok on commit 86e3cf5e5849aefcc540c19bb5fa5ab7f470d1c1
最后
敬请享用!!!
youtube-dl https://www.youtube.com/watch?v=E9KZ9ijFMqc