diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 15:58:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-16 15:58:57 +0200 |
commit | 83482ec476069df6b4303a1b809cbb9f24527ba0 (patch) | |
tree | 1d0e30c61e711f12b6dee49791f6746a57be6e17 /server/helpers/youtube-dl.ts | |
parent | a3f45a2ab3cadf0946f06a0539993b828becd516 (diff) | |
download | PeerTube-83482ec476069df6b4303a1b809cbb9f24527ba0.tar.gz PeerTube-83482ec476069df6b4303a1b809cbb9f24527ba0.tar.zst PeerTube-83482ec476069df6b4303a1b809cbb9f24527ba0.zip |
Fix youtube-dl import for peertube videos
Diffstat (limited to 'server/helpers/youtube-dl.ts')
-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') |