Fix videos import script

pull/420/head
Chocobozzz 2018-03-26 14:20:33 +02:00
parent 45b8a42ca1
commit 27d56b5453
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 1 deletions

View File

@ -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,