diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-15 14:46:26 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-15 15:29:07 +0100 |
commit | 2422c46b27790d94fd29a7092170cee5a1b56008 (patch) | |
tree | d5c1942ce20cadb27a551d87c789edfe92f5b105 /server/tools | |
parent | 34cbef8c6cc912143a421413bdd832c4adcc556a (diff) | |
download | PeerTube-2422c46b27790d94fd29a7092170cee5a1b56008.tar.gz PeerTube-2422c46b27790d94fd29a7092170cee5a1b56008.tar.zst PeerTube-2422c46b27790d94fd29a7092170cee5a1b56008.zip |
Implement support field in video and video channel
Diffstat (limited to 'server/tools')
-rw-r--r-- | server/tools/upload.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/tools/upload.ts b/server/tools/upload.ts index 3bf9dd65e..de8ff8d26 100644 --- a/server/tools/upload.ts +++ b/server/tools/upload.ts | |||
@@ -19,6 +19,7 @@ program | |||
19 | .option('-L, --language <language number>', 'Language number') | 19 | .option('-L, --language <language number>', 'Language number') |
20 | .option('-d, --video-description <description>', 'Video description') | 20 | .option('-d, --video-description <description>', 'Video description') |
21 | .option('-t, --tags <tags>', 'Video tags', list) | 21 | .option('-t, --tags <tags>', 'Video tags', list) |
22 | .option('-b, --thumbnail <thumbnailPath>', 'Thumbnail path') | ||
22 | .option('-f, --file <file>', 'Video absolute file path') | 23 | .option('-f, --file <file>', 'Video absolute file path') |
23 | .parse(process.argv) | 24 | .parse(process.argv) |
24 | 25 | ||
@@ -72,7 +73,8 @@ async function run () { | |||
72 | description: program['videoDescription'], | 73 | description: program['videoDescription'], |
73 | tags: program['tags'], | 74 | tags: program['tags'], |
74 | commentsEnabled: program['commentsEnabled'], | 75 | commentsEnabled: program['commentsEnabled'], |
75 | fixture: program['file'] | 76 | fixture: program['file'], |
77 | thumbnailfile: program['thumbnailPath'] | ||
76 | } | 78 | } |
77 | 79 | ||
78 | await uploadVideo(program['url'], accessToken, videoAttributes) | 80 | await uploadVideo(program['url'], accessToken, videoAttributes) |