diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-26 14:20:33 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-26 14:20:33 +0200 |
commit | 27d56b545323fd8e8fab545466bcf3002f9c42f0 (patch) | |
tree | 07d83db6c416d9a04cb9b6d7a2ebe3f26a46e06d /server | |
parent | 45b8a42ca1869ef36d565c6062fa569d718c91e9 (diff) | |
download | PeerTube-27d56b545323fd8e8fab545466bcf3002f9c42f0.tar.gz PeerTube-27d56b545323fd8e8fab545466bcf3002f9c42f0.tar.zst PeerTube-27d56b545323fd8e8fab545466bcf3002f9c42f0.zip |
Fix videos import script
Diffstat (limited to 'server')
-rw-r--r-- | server/tools/import-videos.ts | 5 |
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 | ||
2 | require('tls').DEFAULT_ECDH_CURVE = 'auto' | ||
3 | |||
1 | import * as program from 'commander' | 4 | import * as program from 'commander' |
2 | import { join } from 'path' | 5 | import { join } from 'path' |
3 | import * as youtubeDL from 'youtube-dl' | 6 | import * 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, |