aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools')
-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,