]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/youtube-dl.ts
More logs for webtorrent download
[github/Chocobozzz/PeerTube.git] / server / helpers / youtube-dl.ts
index d003ea3cfa3bcf4e64d7de5dc10fa9616fdc9b2d..3c80e7d41ccc10954ee6566e985a916a883ace30 100644 (file)
@@ -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<YoutubeDLInfo> {
     return new Promise<YoutubeDLInfo>((res, rej) => {
-      let args = opts || [ '-j', '--flat-playlist' ]
+      let args = opts || []
 
       if (CONFIG.IMPORT.VIDEOS.HTTP.FORCE_IPV4) {
         args.push('--force-ipv4')