From: Chocobozzz Date: Mon, 26 Mar 2018 12:20:33 +0000 (+0200) Subject: Fix videos import script X-Git-Tag: v1.0.0-beta.2~27 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=27d56b545323fd8e8fab545466bcf3002f9c42f0;p=oweals%2Fpeertube.git Fix videos import script --- 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 @@ +// FIXME: https://github.com/nodejs/node/pull/16853 +require('tls').DEFAULT_ECDH_CURVE = 'auto' + import * as program from 'commander' import { join } from 'path' import * as youtubeDL from 'youtube-dl' @@ -144,7 +147,7 @@ async function uploadVideoOnPeerTube (videoInfo: any, videoPath: string, languag language, nsfw: isNSFW(videoInfo), commentsEnabled: true, - description: videoInfo.description, + description: videoInfo.description || undefined, support: undefined, tags, privacy: VideoPrivacy.PUBLIC,