From 3092476e64d09b449b4ad4f5198024afec1b22ca Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 7 Apr 2017 12:13:37 +0200 Subject: Server: add video language attribute --- server/tests/real-world/tools/upload.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/tests/real-world/tools') diff --git a/server/tests/real-world/tools/upload.js b/server/tests/real-world/tools/upload.js index 4b6dbe603..efb91e228 100644 --- a/server/tests/real-world/tools/upload.js +++ b/server/tests/real-world/tools/upload.js @@ -12,6 +12,7 @@ program .option('-x, --nsfw', 'Video is Not Safe For Work') .option('-c, --category ', 'Category number') .option('-l, --licence ', 'Licence number') + .option('-g, --language ', 'Language number') .option('-d, --description ', 'Video description') .option('-t, --tags ', 'Video tags', list) .option('-f, --file ', 'Video absolute file path') @@ -23,6 +24,7 @@ if ( !program.name || !program.category || !program.licence || + !program.language || !program.nsfw || !program.description || !program.tags || @@ -42,6 +44,7 @@ fs.access(program.file, fs.F_OK, function (err) { program.name, program.category, program.licence, + program.language, program.nsfw, program.description, program.tags, @@ -55,13 +58,14 @@ function list (val) { return val.split(',') } -function upload (url, accessToken, name, category, licence, nsfw, description, tags, fixture) { +function upload (url, accessToken, name, category, licence, language, nsfw, description, tags, fixture) { console.log('Uploading %s video...', program.name) const videoAttributes = { name, category, licence, + language, nsfw, description, tags, -- cgit v1.2.3