diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-07 12:13:37 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-07 12:13:37 +0200 |
commit | 3092476e64d09b449b4ad4f5198024afec1b22ca (patch) | |
tree | f2d2bd33578e122188cd2297f60e12813bffdbb7 /server/tests/real-world/tools | |
parent | 023553a2bde74c5765b5ea679fc04128c27f18a0 (diff) | |
download | PeerTube-3092476e64d09b449b4ad4f5198024afec1b22ca.tar.gz PeerTube-3092476e64d09b449b4ad4f5198024afec1b22ca.tar.zst PeerTube-3092476e64d09b449b4ad4f5198024afec1b22ca.zip |
Server: add video language attribute
Diffstat (limited to 'server/tests/real-world/tools')
-rw-r--r-- | server/tests/real-world/tools/upload.js | 6 |
1 files changed, 5 insertions, 1 deletions
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 | |||
12 | .option('-x, --nsfw', 'Video is Not Safe For Work') | 12 | .option('-x, --nsfw', 'Video is Not Safe For Work') |
13 | .option('-c, --category <category number>', 'Category number') | 13 | .option('-c, --category <category number>', 'Category number') |
14 | .option('-l, --licence <licence number>', 'Licence number') | 14 | .option('-l, --licence <licence number>', 'Licence number') |
15 | .option('-g, --language <language number>', 'Language number') | ||
15 | .option('-d, --description <description>', 'Video description') | 16 | .option('-d, --description <description>', 'Video description') |
16 | .option('-t, --tags <tags>', 'Video tags', list) | 17 | .option('-t, --tags <tags>', 'Video tags', list) |
17 | .option('-f, --file <file>', 'Video absolute file path') | 18 | .option('-f, --file <file>', 'Video absolute file path') |
@@ -23,6 +24,7 @@ if ( | |||
23 | !program.name || | 24 | !program.name || |
24 | !program.category || | 25 | !program.category || |
25 | !program.licence || | 26 | !program.licence || |
27 | !program.language || | ||
26 | !program.nsfw || | 28 | !program.nsfw || |
27 | !program.description || | 29 | !program.description || |
28 | !program.tags || | 30 | !program.tags || |
@@ -42,6 +44,7 @@ fs.access(program.file, fs.F_OK, function (err) { | |||
42 | program.name, | 44 | program.name, |
43 | program.category, | 45 | program.category, |
44 | program.licence, | 46 | program.licence, |
47 | program.language, | ||
45 | program.nsfw, | 48 | program.nsfw, |
46 | program.description, | 49 | program.description, |
47 | program.tags, | 50 | program.tags, |
@@ -55,13 +58,14 @@ function list (val) { | |||
55 | return val.split(',') | 58 | return val.split(',') |
56 | } | 59 | } |
57 | 60 | ||
58 | function upload (url, accessToken, name, category, licence, nsfw, description, tags, fixture) { | 61 | function upload (url, accessToken, name, category, licence, language, nsfw, description, tags, fixture) { |
59 | console.log('Uploading %s video...', program.name) | 62 | console.log('Uploading %s video...', program.name) |
60 | 63 | ||
61 | const videoAttributes = { | 64 | const videoAttributes = { |
62 | name, | 65 | name, |
63 | category, | 66 | category, |
64 | licence, | 67 | licence, |
68 | language, | ||
65 | nsfw, | 69 | nsfw, |
66 | description, | 70 | description, |
67 | tags, | 71 | tags, |