diff options
Diffstat (limited to 'server/tools')
-rw-r--r-- | server/tools/peertube-import-videos.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts index e2f80c703..76338ea3c 100644 --- a/server/tools/peertube-import-videos.ts +++ b/server/tools/peertube-import-videos.ts | |||
@@ -165,7 +165,7 @@ async function processVideo (parameters: { | |||
165 | const youtubeDLBinary = await YoutubeDLCLI.safeGet() | 165 | const youtubeDLBinary = await YoutubeDLCLI.safeGet() |
166 | const output = await youtubeDLBinary.download({ | 166 | const output = await youtubeDLBinary.download({ |
167 | url: videoInfo.url, | 167 | url: videoInfo.url, |
168 | format: YoutubeDLCLI.getYoutubeDLVideoFormat([]), | 168 | format: YoutubeDLCLI.getYoutubeDLVideoFormat([], false), |
169 | output: path, | 169 | output: path, |
170 | additionalYoutubeDLArgs: command.args, | 170 | additionalYoutubeDLArgs: command.args, |
171 | processOptions | 171 | processOptions |
@@ -251,7 +251,7 @@ async function fetchObject (info: any) { | |||
251 | const youtubeDLCLI = await YoutubeDLCLI.safeGet() | 251 | const youtubeDLCLI = await YoutubeDLCLI.safeGet() |
252 | const result = await youtubeDLCLI.getInfo({ | 252 | const result = await youtubeDLCLI.getInfo({ |
253 | url, | 253 | url, |
254 | format: YoutubeDLCLI.getYoutubeDLVideoFormat([]), | 254 | format: YoutubeDLCLI.getYoutubeDLVideoFormat([], false), |
255 | processOptions | 255 | processOptions |
256 | }) | 256 | }) |
257 | 257 | ||
@@ -336,7 +336,7 @@ function exitError (message: string, ...meta: any[]) { | |||
336 | function getYoutubeDLInfo (youtubeDLCLI: YoutubeDLCLI, url: string, args: string[]) { | 336 | function getYoutubeDLInfo (youtubeDLCLI: YoutubeDLCLI, url: string, args: string[]) { |
337 | return youtubeDLCLI.getInfo({ | 337 | return youtubeDLCLI.getInfo({ |
338 | url, | 338 | url, |
339 | format: YoutubeDLCLI.getYoutubeDLVideoFormat([]), | 339 | format: YoutubeDLCLI.getYoutubeDLVideoFormat([], false), |
340 | additionalYoutubeDLArgs: [ '-j', '--flat-playlist', '--playlist-reverse', ...args ], | 340 | additionalYoutubeDLArgs: [ '-j', '--flat-playlist', '--playlist-reverse', ...args ], |
341 | processOptions | 341 | processOptions |
342 | }) | 342 | }) |