mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-03 09:29:16 +02:00
add possibility to choose license cca for Youtube
This commit is contained in:
parent
ac91e9b918
commit
c8efa820ff
5 changed files with 17 additions and 4 deletions
|
@ -13,7 +13,8 @@ Options:
|
|||
--name=NAME Name of the video to upload. default to video file name
|
||||
-d, --description=STRING Description of the video.
|
||||
-t, --tags=STRING Tags for the video. comma separated
|
||||
-c, --category=STRING Category for the videos, see below. Default to films
|
||||
-c, --category=STRING Category for the videos, see below. Default to films
|
||||
--cca License should be CreativeCommon Attribution (affects Youtube upload only)
|
||||
-h --help Show this help.
|
||||
--version Show version.
|
||||
|
||||
|
@ -85,6 +86,7 @@ if __name__ == '__main__':
|
|||
Optional('--description'): Or(None, And(str, lambda x: not x.isdigit(), error="The video name should be a string")),
|
||||
Optional('--tags'): Or(None, And(str, lambda x: not x.isdigit(), error="Tags should be a string")),
|
||||
Optional('--category'): Or(None, And(str, validateCategory, error="Category not recognized, please see --help")),
|
||||
Optional('--cca'): bool,
|
||||
'--help': bool,
|
||||
'--version': bool
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue