python - 将 YouTube-DL 错误返回为 Python 错误
问题描述
我正在尝试在 python 中使用 YouTube-dl 下载视频,但有时我尝试下载的视频受版权保护或被删除,所以我从 YouTube-dl 收到一条错误消息:
[Example] Example: Downloading embed webpage
[Example] Example: Downloading f webpage
ERROR: Example: File not found
无论如何我可以让错误停止我的python程序吗?
解决方案
推荐阅读
- android-studio - Flutter 项目的权限被拒绝
- slack - 在不通知所有频道的情况下设置提醒@chanel
- sql - SQL 帮助 - 列出值的数据汇总
- c - 当我们不在switch语句中使用'break'语句时,为什么在其他低于'default'的情况之前评估'deafult'?
- arrays - 使用 AVAudioPCMBuffer int16 数据调度缓冲区
- javascript - 仅在主包中包含 webpack 辅助方法和 polyfill
- python-3.x - 使用 TfidfVectorizer 的词频
- sql - 两个表的联合选择 * 但仅在某些列中没有重复项的情况下
- rsync - rsync --exclude 不排除第一个值
- c# - DynamoDB 查询不返回所有属性