Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3641

Youtube won't update captions for a video

$
0
0

am trying to update captions for a video on my channel using the below code snippet,

service.captions          .update({            part: "snippet",            sync: true,            requestBody: {              id: track_id,              snippet: {                language: "en",                name: "English captions",                videoId: videoId,                isDraft: false              }            },            media: {              mimeType: "*/*",              body: "0:00:00.934,0:00:10.434\nupdated content all the time"            }          })          .then(response => {            console.log(response.data);            return response;          });

the token used was requested with the these scopes

scopes = ["profile","https://www.googleapis.com/auth/youtube.upload","https://www.googleapis.com/auth/youtube.force-ssl","https://www.googleapis.com/auth/youtubepartner","https://www.googleapis.com/auth/userinfo.profile"];

and it's working for other videos but, for a specific one I receive this error ...

code: 403,  errors: [    {      message: 'The permissions associated with the request are not sufficient to update the caption track. The request might not be properly authorized.',      domain: 'youtube.caption',      reason: 'forbidden',      location: 'id',      locationType: 'parameter'    }  ]

what could be the issue ?


Viewing all articles
Browse latest Browse all 3641

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>