aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/upload.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools/upload.ts')
-rw-r--r--server/tools/upload.ts4
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)