X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fyoutube-dl.ts;h=302b2e206bee857848da85177962eaee09121ad0;hb=f64615efa6929c7b8d4e8750a861caf009614a1f;hp=8733fe6cff8f9c57663d4824a363d8a41c6cd50e;hpb=677012b4ee53e5099e8c90445616644e1a6af9ef;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/youtube-dl.ts b/server/helpers/youtube-dl.ts index 8733fe6cf..302b2e206 100644 --- a/server/helpers/youtube-dl.ts +++ b/server/helpers/youtube-dl.ts @@ -34,7 +34,11 @@ const processOptions = { function getYoutubeDLInfo (url: string, opts?: string[]): Promise { return new Promise((res, rej) => { let args = opts || [ '-j', '--flat-playlist' ] - if (CONFIG.IMPORT.VIDEOS.HTTP.FORCEIPV4) args.push('--force-ipv4') + + if (CONFIG.IMPORT.VIDEOS.HTTP.FORCE_IPV4) { + args.push('--force-ipv4') + } + args = wrapWithProxyOptions(args) safeGetYoutubeDL()