From 02988fdc0bdd345bddf89171d258822cab4229d6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 15 Feb 2018 18:40:24 +0100 Subject: Fix remote image fetching --- 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 de8ff8d26..97e24dc88 100644 --- a/server/tools/upload.ts +++ b/server/tools/upload.ts @@ -20,6 +20,7 @@ program .option('-d, --video-description ', 'Video description') .option('-t, --tags ', 'Video tags', list) .option('-b, --thumbnail ', 'Thumbnail path') + .option('-v, --preview ', 'Preview path') .option('-f, --file ', 'Video absolute file path') .parse(process.argv) @@ -74,7 +75,8 @@ async function run () { tags: program['tags'], commentsEnabled: program['commentsEnabled'], fixture: program['file'], - thumbnailfile: program['thumbnailPath'] + thumbnailfile: program['thumbnailPath'], + previewfile: program['previewPath'] } await uploadVideo(program['url'], accessToken, videoAttributes) -- cgit v1.2.3