diff options
author | Mark Van den Borre <mark+github@markvdb.be> | 2020-11-18 14:06:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 14:06:20 +0100 |
commit | 677012b4ee53e5099e8c90445616644e1a6af9ef (patch) | |
tree | 6743722314720bf011ec7907bb30768fe46f0aa1 /server/helpers | |
parent | 7f88a58e3f8582431978ffff2e2beddadae6e358 (diff) | |
download | PeerTube-677012b4ee53e5099e8c90445616644e1a6af9ef.tar.gz PeerTube-677012b4ee53e5099e8c90445616644e1a6af9ef.tar.zst PeerTube-677012b4ee53e5099e8c90445616644e1a6af9ef.zip |
default youtube-dl to use ipv4 (#3311)
Co-authored-by: Rigel Kent <sendmemail@rigelk.eu>
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/youtube-dl.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/helpers/youtube-dl.ts b/server/helpers/youtube-dl.ts index c2aa8870a..8733fe6cf 100644 --- a/server/helpers/youtube-dl.ts +++ b/server/helpers/youtube-dl.ts | |||
@@ -34,6 +34,7 @@ const processOptions = { | |||
34 | function getYoutubeDLInfo (url: string, opts?: string[]): Promise<YoutubeDLInfo> { | 34 | function getYoutubeDLInfo (url: string, opts?: string[]): Promise<YoutubeDLInfo> { |
35 | return new Promise<YoutubeDLInfo>((res, rej) => { | 35 | return new Promise<YoutubeDLInfo>((res, rej) => { |
36 | let args = opts || [ '-j', '--flat-playlist' ] | 36 | let args = opts || [ '-j', '--flat-playlist' ] |
37 | if (CONFIG.IMPORT.VIDEOS.HTTP.FORCEIPV4) args.push('--force-ipv4') | ||
37 | args = wrapWithProxyOptions(args) | 38 | args = wrapWithProxyOptions(args) |
38 | 39 | ||
39 | safeGetYoutubeDL() | 40 | safeGetYoutubeDL() |