add possibility to choose license cca for Youtube

This commit is contained in:
LecygneNoir 2018-03-09 16:15:53 +01:00
parent ac91e9b918
commit c8efa820ff
5 changed files with 17 additions and 4 deletions

View file

@ -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
})