aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-26 14:20:33 +0200
committerChocobozzz <me@florianbigard.com>2018-03-26 14:20:33 +0200
commit27d56b545323fd8e8fab545466bcf3002f9c42f0 (patch)
tree07d83db6c416d9a04cb9b6d7a2ebe3f26a46e06d
parent45b8a42ca1869ef36d565c6062fa569d718c91e9 (diff)
downloadPeerTube-27d56b545323fd8e8fab545466bcf3002f9c42f0.tar.gz
PeerTube-27d56b545323fd8e8fab545466bcf3002f9c42f0.tar.zst
PeerTube-27d56b545323fd8e8fab545466bcf3002f9c42f0.zip
Fix videos import script
-rw-r--r--server/tools/import-videos.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/tools/import-videos.ts b/server/tools/import-videos.ts
index 27d0732a6..809d69e4c 100644
--- a/server/tools/import-videos.ts
+++ b/server/tools/import-videos.ts
@@ -1,3 +1,6 @@
1// FIXME: https://github.com/nodejs/node/pull/16853
2require('tls').DEFAULT_ECDH_CURVE = 'auto'
3
1import * as program from 'commander' 4import * as program from 'commander'
2import { join } from 'path' 5import { join } from 'path'
3import * as youtubeDL from 'youtube-dl' 6import * as youtubeDL from 'youtube-dl'
@@ -144,7 +147,7 @@ async function uploadVideoOnPeerTube (videoInfo: any, videoPath: string, languag
144 language, 147 language,
145 nsfw: isNSFW(videoInfo), 148 nsfw: isNSFW(videoInfo),
146 commentsEnabled: true, 149 commentsEnabled: true,
147 description: videoInfo.description, 150 description: videoInfo.description || undefined,
148 support: undefined, 151 support: undefined,
149 tags, 152 tags,
150 privacy: VideoPrivacy.PUBLIC, 153 privacy: VideoPrivacy.PUBLIC,