diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-09 09:09:31 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-09 09:32:17 +0200 |
commit | b42c2c7e89a64ed730d8140840fe74a13c31f2a4 (patch) | |
tree | 715e7ad31d03881e3f3530dba1fe3d172251249b /server/tools | |
parent | bd911b54b555b11df7e9849cf92d358bccfecf6e (diff) | |
download | PeerTube-b42c2c7e89a64ed730d8140840fe74a13c31f2a4.tar.gz PeerTube-b42c2c7e89a64ed730d8140840fe74a13c31f2a4.tar.zst PeerTube-b42c2c7e89a64ed730d8140840fe74a13c31f2a4.zip |
Avoid concurrency issue on transcoding
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 | }) |