X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fyoutube-dl.ts;h=3c80e7d41ccc10954ee6566e985a916a883ace30;hb=0bae66632a8767f3d5aca080af314bcab56e1889;hp=d003ea3cfa3bcf4e64d7de5dc10fa9616fdc9b2d;hpb=8f608a4cb22ab232cfab20665050764b38bac9c7;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/youtube-dl.ts b/server/helpers/youtube-dl.ts index d003ea3cf..3c80e7d41 100644 --- a/server/helpers/youtube-dl.ts +++ b/server/helpers/youtube-dl.ts @@ -3,7 +3,7 @@ import { ensureDir, move, pathExists, remove, writeFile } from 'fs-extra' import got from 'got' import { join } from 'path' import { CONFIG } from '@server/initializers/config' -import { HttpStatusCode } from '../../shared/core-utils/miscs/http-error-codes' +import { HttpStatusCode } from '../../shared/models/http/http-error-codes' import { VideoResolution } from '../../shared/models/videos' import { CONSTRAINTS_FIELDS, VIDEO_CATEGORIES, VIDEO_LANGUAGES, VIDEO_LICENCES } from '../initializers/constants' import { peertubeTruncate, pipelinePromise, root } from './core-utils' @@ -42,7 +42,7 @@ class YoutubeDL { getYoutubeDLInfo (opts?: string[]): Promise { return new Promise((res, rej) => { - let args = opts || [ '-j', '--flat-playlist' ] + let args = opts || [] if (CONFIG.IMPORT.VIDEOS.HTTP.FORCE_IPV4) { args.push('--force-ipv4')