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:

https://developers.google.com/youtube/v3/code_samples/python#create_and_manage_youtube_video_caption_tracks

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

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -