python - YouTube API v3 - captions upload causes HTTP 500 backend error -
i'm using code sample how use youtube v3 api methods upload youtube video caption tracks, given at:
however, when i'm running command line using following command:
python manage_captions.py --file="test.srt" --videoid='ddil1fbaida' --action='upload'
the content of test.rst is:
first line of caption track: 1 00:00:23,000 --> 00:00:25,000 text displays 2 seconds starting 1 minute , 23 seconds video. 2 00:02:20,250 --> 00:02:23,800 text displays 2 minutes , 20.25 seconds after start of video until 2 minutes , 23.8 seconds after start of video. 3 00:03:14,159 --> 00:03:22,092 text displays beginning 3 minutes , 14.159 seconds after start of video undefined length of time.
i http error:
an http error 500 occurred: { "error": { "errors": [ { "domain": "global", "reason": "backenderror", "message": "backend error" } ], "code": 500, "message": "backend error" } }
any ideas why might happen?
you need add --language='en' call since it's required field.
Comments
Post a Comment