]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tools/peertube-import-videos.ts
Add tests for video downscale framerate matching
[github/Chocobozzz/PeerTube.git] / server / tools / peertube-import-videos.ts
index 39e8221c0c23a961de7ad736e1d6d1a9ccc59b3f..c7e85b570bc677257a9b8279406152d3b675b5dd 100644 (file)
@@ -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
   }