diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/tools/peertube-upload.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/tools/peertube-upload.ts b/server/tools/peertube-upload.ts index 687f2e60b..bfce10e54 100644 --- a/server/tools/peertube-upload.ts +++ b/server/tools/peertube-upload.ts | |||
@@ -77,7 +77,7 @@ async function run (url: string, username: string, password: string) { | |||
77 | licence: program['licence'] || undefined, | 77 | licence: program['licence'] || undefined, |
78 | language: program['language'] || undefined, | 78 | language: program['language'] || undefined, |
79 | nsfw: program['nsfw'] !== undefined ? program['nsfw'] : false, | 79 | nsfw: program['nsfw'] !== undefined ? program['nsfw'] : false, |
80 | description: program['videoDescription'] || '', | 80 | description: program['videoDescription'] || undefined, |
81 | tags: program['tags'] || [], | 81 | tags: program['tags'] || [], |
82 | commentsEnabled: program['commentsEnabled'] !== undefined ? program['commentsEnabled'] : true, | 82 | commentsEnabled: program['commentsEnabled'] !== undefined ? program['commentsEnabled'] : true, |
83 | downloadEnabled: program['downloadEnabled'] !== undefined ? program['downloadEnabled'] : true, | 83 | downloadEnabled: program['downloadEnabled'] !== undefined ? program['downloadEnabled'] : true, |
@@ -94,7 +94,6 @@ async function run (url: string, username: string, password: string) { | |||
94 | console.log(`Video ${program['videoName']} uploaded.`) | 94 | console.log(`Video ${program['videoName']} uploaded.`) |
95 | process.exit(0) | 95 | process.exit(0) |
96 | } catch (err) { | 96 | } catch (err) { |
97 | console.log('coucou') | ||
98 | console.error(require('util').inspect(err)) | 97 | console.error(require('util').inspect(err)) |
99 | process.exit(-1) | 98 | process.exit(-1) |
100 | } | 99 | } |