Add new feature to force compatibility tag with Mastodon publication (peertube)

This commit is contained in:
LecygneNoir 2018-03-29 23:02:30 +02:00
parent 768bbb0215
commit ac6db56355
5 changed files with 43 additions and 6 deletions

View file

@ -6,13 +6,19 @@ prismedia_upload - tool to upload videos to Peertube and Youtube
Usage:
prismedia_upload.py --file=<FILE> [options]
prismedia_upload.py --file=<FILE> --tags=STRING [--mt options]
prismedia_upload.py -h | --help
prismedia_upload.py --version
Options:
--name=NAME Name of the video to upload. (default to video filename)
-d, --description=STRING Description of the video. (default: default description)
-t, --tags=STRING Tags for the video. comma separated
-t, --tags=STRING Tags for the video. comma separated.
WARN: tags with space and special characters (!, ', ", ?, ...)
are not supported by Mastodon to be published from Peertube
use mastodon compatibility below
--mt Force Mastodon compatibility for tags (drop every incompatible characters inside tags)
This option requires --tags
-c, --category=STRING Category for the videos, see below. (default: Films)
--cca License should be CreativeCommon Attribution (affects Youtube upload only)
-p, --privacy=STRING Choose between public, unlisted or private. (default: private)
@ -146,6 +152,7 @@ if __name__ == '__main__':
lambda x: not x.isdigit(),
error="Tags should be a string")
),
Optional('--mt'): bool,
Optional('--category'): Or(None, And(
str,
validateCategory,