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 de8ff8d26..97e24dc88 100644
--- a/server/tools/upload.ts
+++ b/server/tools/upload.ts
@@ -20,6 +20,7 @@ program
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('-b, --thumbnail <thumbnailPath>', 'Thumbnail path')
23 .option('-v, --preview <previewPath>', 'Preview path')
23 .option('-f, --file <file>', 'Video absolute file path') 24 .option('-f, --file <file>', 'Video absolute file path')
24 .parse(process.argv) 25 .parse(process.argv)
25 26
@@ -74,7 +75,8 @@ async function run () {
74 tags: program['tags'], 75 tags: program['tags'],
75 commentsEnabled: program['commentsEnabled'], 76 commentsEnabled: program['commentsEnabled'],
76 fixture: program['file'], 77 fixture: program['file'],
77 thumbnailfile: program['thumbnailPath'] 78 thumbnailfile: program['thumbnailPath'],
79 previewfile: program['previewPath']
78 } 80 }
79 81
80 await uploadVideo(program['url'], accessToken, videoAttributes) 82 await uploadVideo(program['url'], accessToken, videoAttributes)