From 2422c46b27790d94fd29a7092170cee5a1b56008 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 15 Feb 2018 14:46:26 +0100 Subject: Implement support field in video and video channel --- server/tools/upload.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/tools/upload.ts') 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 .option('-L, --language ', 'Language number') .option('-d, --video-description ', 'Video description') .option('-t, --tags ', 'Video tags', list) + .option('-b, --thumbnail ', 'Thumbnail path') .option('-f, --file ', 'Video absolute file path') .parse(process.argv) @@ -72,7 +73,8 @@ async function run () { description: program['videoDescription'], tags: program['tags'], commentsEnabled: program['commentsEnabled'], - fixture: program['file'] + fixture: program['file'], + thumbnailfile: program['thumbnailPath'] } await uploadVideo(program['url'], accessToken, videoAttributes) -- cgit v1.2.3