首页 > 解决方案 > 将 YouTube-DL 错误返回为 Python 错误

问题描述


我正在尝试在 python 中使用 YouTube-dl 下载视频,但有时我尝试下载的视频受版权保护或被删除,所以我从 YouTube-dl 收到一条错误消息:

[Example] Example: Downloading embed webpage
[Example] Example: Downloading f webpage
ERROR: Example: File not found

无论如何我可以让错误停止我的python程序吗?

标签: pythonyoutube-dl

解决方案


推荐阅读