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

How to Set Youtube Video Language using Google Youtube API?

$
0
0

I am trying to set Video Language for the video upload using Google's Youtube API. Here is the upload interface look like.youtube video language upload youtube api

I try to set it up using defaultLanguage snippet, as shown below, but it did not do anything.

Is it possible to set the Video Language to something specific (say French)? Please help.

def initialize_upload(youtube, options):  tags = None  if options.keywords:    tags = options.keywords.split(",")  body=dict(    snippet=dict(      title=options.title,      description=options.description,      tags=tags,      categoryId=options.category    ),    status=dict(      privacyStatus=options.privacyStatus,      defaultLanguage="en",     # <<<< ====== this did not work      publishAt=options.publishAt    )  )

Viewing all articles
Browse latest Browse all 3831

Trending Articles



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