Fix videos import script
This commit is contained in:
parent
45b8a42ca1
commit
27d56b5453
|
@ -1,3 +1,6 @@
|
||||||
|
// FIXME: https://github.com/nodejs/node/pull/16853
|
||||||
|
require('tls').DEFAULT_ECDH_CURVE = 'auto'
|
||||||
|
|
||||||
import * as program from 'commander'
|
import * as program from 'commander'
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
import * as youtubeDL from 'youtube-dl'
|
import * as youtubeDL from 'youtube-dl'
|
||||||
|
@ -144,7 +147,7 @@ async function uploadVideoOnPeerTube (videoInfo: any, videoPath: string, languag
|
||||||
language,
|
language,
|
||||||
nsfw: isNSFW(videoInfo),
|
nsfw: isNSFW(videoInfo),
|
||||||
commentsEnabled: true,
|
commentsEnabled: true,
|
||||||
description: videoInfo.description,
|
description: videoInfo.description || undefined,
|
||||||
support: undefined,
|
support: undefined,
|
||||||
tags,
|
tags,
|
||||||
privacy: VideoPrivacy.PUBLIC,
|
privacy: VideoPrivacy.PUBLIC,
|
||||||
|
|
Loading…
Reference in New Issue