【发布时间】:2015-07-22 17:07:18
【问题描述】:
我正在使用代码示例来了解如何使用 YouTube v3 API 方法来上传 YouTube 视频字幕轨道,提供于:
但是,当我使用以下命令从命令行运行它时:
python manage_captions.py --file="test.srt" --videoid='dDiL1fbAIdA' --action='upload'
test.rst的内容是:
First line of caption track: 1
00:00:23,000 --> 00:00:25,000
This text displays for two seconds starting
1 minute and 23 seconds into the video.
2
00:02:20,250 --> 00:02:23,800
This text displays from 2 minutes and 20.25 seconds after the start
of the video until 2 minutes and 23.8 seconds after the start of the video.
3
00:03:14,159 --> 00:03:22,092
This text displays beginning 3 minutes and 14.159 seconds
after the start of the video for an undefined length of time.
我收到一个 HTTP 错误:
An HTTP error 500 occurred:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 500,
"message": "Backend Error"
}
}
对为什么会发生这种情况有任何想法吗?
【问题讨论】: