Add privacy setting to upload.js cli (#422)
authorOlivier Jolly <zeograd@users.noreply.github.com>
Tue, 27 Mar 2018 14:15:40 +0000 (16:15 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 27 Mar 2018 14:15:40 +0000 (16:15 +0200)
server/tools/upload.ts

index 94ea224b638f58b2b98c072338225eae6a5930cd..e835e61f6b00979df79196a8e197c32b69232c03 100644 (file)
@@ -12,6 +12,7 @@ program
   .option('-U, --username <username>', 'Username')
   .option('-p, --password <token>', 'Password')
   .option('-n, --video-name <name>', 'Video name')
+  .option('-P, --privacy <privacy number>', 'Privacy')
   .option('-N, --nsfw', 'Video is Not Safe For Work')
   .option('-c, --category <category number>', 'Category number')
   .option('-m, --comments-enabled', 'Enable comments')
@@ -81,6 +82,7 @@ async function run () {
     fixture: program['file'],
     thumbnailfile: program['thumbnailPath'],
     previewfile: program['previewPath'],
+    privacy: program['privacy'],
     support: undefined
   }