diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 15:58:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-16 16:44:09 +0200 |
commit | 3b3546496e178d1ef392c3df639925984985bc27 (patch) | |
tree | f260c5d62cbc50afcff5a0895ca9d4364fcc7a56 /server | |
parent | 39072b2f6ae04d2037ef2cb678ce9c352a370278 (diff) | |
download | PeerTube-3b3546496e178d1ef392c3df639925984985bc27.tar.gz PeerTube-3b3546496e178d1ef392c3df639925984985bc27.tar.zst PeerTube-3b3546496e178d1ef392c3df639925984985bc27.zip |
Fix youtube-dl import for peertube videos
Diffstat (limited to 'server')
-rw-r--r-- | server/helpers/youtube-dl.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/youtube-dl.ts b/server/helpers/youtube-dl.ts index d003ea3cf..fdd361390 100644 --- a/server/helpers/youtube-dl.ts +++ b/server/helpers/youtube-dl.ts | |||
@@ -42,7 +42,7 @@ class YoutubeDL { | |||
42 | 42 | ||
43 | getYoutubeDLInfo (opts?: string[]): Promise<YoutubeDLInfo> { | 43 | getYoutubeDLInfo (opts?: string[]): Promise<YoutubeDLInfo> { |
44 | return new Promise<YoutubeDLInfo>((res, rej) => { | 44 | return new Promise<YoutubeDLInfo>((res, rej) => { |
45 | let args = opts || [ '-j', '--flat-playlist' ] | 45 | let args = opts || [] |
46 | 46 | ||
47 | if (CONFIG.IMPORT.VIDEOS.HTTP.FORCE_IPV4) { | 47 | if (CONFIG.IMPORT.VIDEOS.HTTP.FORCE_IPV4) { |
48 | args.push('--force-ipv4') | 48 | args.push('--force-ipv4') |