Fix youtube-dl import for peertube videos
This commit is contained in:
parent
39072b2f6a
commit
3b3546496e
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class YoutubeDL {
|
||||||
|
|
||||||
getYoutubeDLInfo (opts?: string[]): Promise<YoutubeDLInfo> {
|
getYoutubeDLInfo (opts?: string[]): Promise<YoutubeDLInfo> {
|
||||||
return new Promise<YoutubeDLInfo>((res, rej) => {
|
return new Promise<YoutubeDLInfo>((res, rej) => {
|
||||||
let args = opts || [ '-j', '--flat-playlist' ]
|
let args = opts || []
|
||||||
|
|
||||||
if (CONFIG.IMPORT.VIDEOS.HTTP.FORCE_IPV4) {
|
if (CONFIG.IMPORT.VIDEOS.HTTP.FORCE_IPV4) {
|
||||||
args.push('--force-ipv4')
|
args.push('--force-ipv4')
|
||||||
|
|
Loading…
Reference in a new issue