mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-03 09:29:16 +02:00
Add options to choose audio language for the video (default is English)
This commit is contained in:
parent
605f1a8d67
commit
f3e0369710
6 changed files with 85 additions and 3 deletions
|
@ -81,6 +81,10 @@ def initialize_upload(youtube, options):
|
|||
if options.get('--category'):
|
||||
category = utils.getCategory(options.get('--category'), 'youtube')
|
||||
|
||||
language = None
|
||||
if options.get('--language'):
|
||||
language = utils.getLanguage(options.get('--language'), "youtube")
|
||||
|
||||
license = None
|
||||
if options.get('--cca'):
|
||||
license = "creativeCommon"
|
||||
|
@ -92,6 +96,7 @@ def initialize_upload(youtube, options):
|
|||
"tags": tags,
|
||||
# if no category, set default to 1 (Films)
|
||||
"categoryId": str(category or 1),
|
||||
"defaultAudioLanguage": str(language or 'en')
|
||||
},
|
||||
"status": {
|
||||
"privacyStatus": str(options.get('--privacy') or "private"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue