diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-29 14:10:31 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-07-29 14:10:31 +0200 |
commit | 6f530096cbceda09377c2e8e235cf02c36226989 (patch) | |
tree | 9e15915d8e59ec50f8ae8d5ac4ac315ea54e5c07 /server/tools/peertube-upload.ts | |
parent | 2284f202070aa2e49156cc52b3b1596a7d5aadec (diff) | |
download | PeerTube-6f530096cbceda09377c2e8e235cf02c36226989.tar.gz PeerTube-6f530096cbceda09377c2e8e235cf02c36226989.tar.zst PeerTube-6f530096cbceda09377c2e8e235cf02c36226989.zip |
Correctly import tags in CLI
Diffstat (limited to 'server/tools/peertube-upload.ts')
-rw-r--r-- | server/tools/peertube-upload.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/server/tools/peertube-upload.ts b/server/tools/peertube-upload.ts index d9f9a8ead..4569cbb85 100644 --- a/server/tools/peertube-upload.ts +++ b/server/tools/peertube-upload.ts | |||
@@ -46,11 +46,7 @@ async function run (url: string, username: string, password: string) { | |||
46 | 46 | ||
47 | console.log('Uploading %s video...', program[ 'videoName' ]) | 47 | console.log('Uploading %s video...', program[ 'videoName' ]) |
48 | 48 | ||
49 | const defaultAttributes = { | 49 | const videoAttributes = await buildVideoAttributesFromCommander(url, program) |
50 | tags: command[ 'tags' ], | ||
51 | description: command[ 'videoDescription' ] | ||
52 | } | ||
53 | const videoAttributes = await buildVideoAttributesFromCommander(url, program, defaultAttributes) | ||
54 | 50 | ||
55 | Object.assign(videoAttributes, { | 51 | Object.assign(videoAttributes, { |
56 | fixture: program[ 'file' ], | 52 | fixture: program[ 'file' ], |