|
|
@ -7,6 +7,7 @@ prismedia - tool to upload videos to Peertube and Youtube |
|
|
|
Usage: |
|
|
|
prismedia --file=<FILE> [options] |
|
|
|
prismedia -f <FILE> --tags=STRING [options] |
|
|
|
prismedia --hearthbeat |
|
|
|
prismedia -h | --help |
|
|
|
prismedia --version |
|
|
|
|
|
|
@ -50,6 +51,9 @@ Options: |
|
|
|
--playlistCreate Create the playlist if not exists. (default do not create) |
|
|
|
Only relevant if --playlist is set. |
|
|
|
--progress=STRING Set the progress bar view, one of percentage, bigFile (MB), accurate (KB). |
|
|
|
|
|
|
|
--hearthbeat Use some credits to show some activity for you apikey so the platform know it is used and would not put your quota to 0 (only Youtube currently) |
|
|
|
|
|
|
|
-h --help Show this help. |
|
|
|
--version Show version. |
|
|
|
|
|
|
@ -396,11 +400,17 @@ def main(): |
|
|
|
Optional('--playlist'): Or(None, str), |
|
|
|
Optional('--playlistCreate'): bool, |
|
|
|
Optional('--progress'): Or(None, And(str, validateProgress, error="Sorry, progress visualisation not supported")), |
|
|
|
'--hearthbeat': bool, |
|
|
|
'--help': bool, |
|
|
|
'--version': bool, |
|
|
|
# This allow to return all other options for further use: https://github.com/keleshev/schema#extra-keys |
|
|
|
object: object |
|
|
|
}) |
|
|
|
|
|
|
|
if options.get('--hearthbeat'): |
|
|
|
yt_upload.hearthbeat() |
|
|
|
exit(0) |
|
|
|
|
|
|
|
# We need to validate early options first as withNFO and logs options should be prioritized |
|
|
|
try: |
|
|
|
options = earlyoptionSchema.validate(options) |
|
|
|