X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftools%2Fpeertube-import-videos.ts;h=c7e85b570bc677257a9b8279406152d3b675b5dd;hb=837666fe48f9ed786db75c96e2025cbcf20a1e3b;hp=39e8221c0c23a961de7ad736e1d6d1a9ccc59b3f;hpb=da69b88638914755900b26bf55482c9d6846e42c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts index 39e8221c0..c7e85b570 100644 --- a/server/tools/peertube-import-videos.ts +++ b/server/tools/peertube-import-videos.ts @@ -1,10 +1,6 @@ import { registerTSPaths } from '../helpers/register-ts-paths' - registerTSPaths() -// FIXME: https://github.com/nodejs/node/pull/16853 -require('tls').DEFAULT_ECDH_CURVE = 'auto' - import * as program from 'commander' import { join } from 'path' import { doRequestAndSaveToFile } from '../helpers/requests' @@ -333,7 +329,7 @@ function isNSFW (info: any) { function normalizeTargetUrl (url: string) { let normalizedUrl = url.replace(/\/+$/, '') - if (!normalizedUrl.startsWith('http://') || !normalizedUrl.startsWith('https://')) { + if (!normalizedUrl.startsWith('http://') && !normalizedUrl.startsWith('https://')) { normalizedUrl = 'https://' + normalizedUrl }