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:
I would also like to set programmatically other options in the web interface, such as:
- altered content
- Allow automatic chapters and key moments
- Allow automatic concepts
- Don't allow remixing
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:
I also tried defaultLanguage="fr" in snippet and I get the same result.


defaultLanguage.defaultAudioLanguage(as in the answer) and the title and description language withdefaultLanguage(as in the comment). I could not yet set "altered content" nor the rest and I asked the person who provided the accepted answer; we'll probably have more luck posting another question. Yes, I could schedule the video with, for examplepublishAt="2024-04-04T18:00:00+00:00"(see stackoverflow.com/questions/40148118/… ).