projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45b8a42
)
Fix videos import script
author
Chocobozzz
<me@florianbigard.com>
Mon, 26 Mar 2018 12:20:33 +0000
(14:20 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Mon, 26 Mar 2018 12:20:33 +0000
(14:20 +0200)
server/tools/import-videos.ts
patch
|
blob
|
history
diff --git
a/server/tools/import-videos.ts
b/server/tools/import-videos.ts
index 27d0732a6c78c28800a445375b52cd441ffe447c..809d69e4c6cfb6ce8ce74dbd804d0319c2d59291 100644
(file)
--- 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,