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

How to set video language when uploading to YouTube with Python API client

$
0
0

I am uploading videos to YouTube programmatically following the official guide:

  body=dict(    snippet=dict(      title=title,      description=description,      tags=tags,    ),    status=dict(      privacyStatus="public"    )  )

I can upload the video, set the title, the description, and upload a thumbnail. The setting "Made for kids" comes from the channel's default.

But the video's language does not come from the channel's default, so I want to set it programmatically. On the web interface, it looks like this:

upload language settings

I would also like to set programmatically other options in the web interface, such as chapter markers or embedding.

How can I set these additional options during or after the upload with the Python API client?

Update

I tried defaultLanguage="fr-FR" in snippet and it sets the title and description language, not the video language:

language setting from the API


Viewing all articles
Browse latest Browse all 3831

Trending Articles



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