diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-19 16:28:55 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-19 16:36:21 +0100 |
commit | 805b8619c1b8c56e08c927d93293c06e1075b50d (patch) | |
tree | a165d9929c0864ecdbf2ac6e07000ac266aa5d59 /server/controllers/api | |
parent | d487a997c80fafe6067016c6cd8e8afd6141baa3 (diff) | |
download | PeerTube-805b8619c1b8c56e08c927d93293c06e1075b50d.tar.gz PeerTube-805b8619c1b8c56e08c927d93293c06e1075b50d.tar.zst PeerTube-805b8619c1b8c56e08c927d93293c06e1075b50d.zip |
Fix (again) youtube import
Diffstat (limited to 'server/controllers/api')
-rw-r--r-- | server/controllers/api/videos/import.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts index 9702e219a..96499dffb 100644 --- a/server/controllers/api/videos/import.ts +++ b/server/controllers/api/videos/import.ts | |||
@@ -220,8 +220,7 @@ async function addYoutubeDLImport (req: express.Request, res: express.Response) | |||
220 | videoImportId: videoImport.id, | 220 | videoImportId: videoImport.id, |
221 | generateThumbnail: !thumbnailModel, | 221 | generateThumbnail: !thumbnailModel, |
222 | generatePreview: !previewModel, | 222 | generatePreview: !previewModel, |
223 | fileExt: `.${youtubeDLInfo.ext || 'mp4'}`, | 223 | fileExt: `.${youtubeDLInfo.ext || 'mp4'}` |
224 | mergeExt: youtubeDLInfo.mergeExt ? `.${youtubeDLInfo.mergeExt}` : '' | ||
225 | } | 224 | } |
226 | await JobQueue.Instance.createJobWithPromise({ type: 'video-import', payload }) | 225 | await JobQueue.Instance.createJobWithPromise({ type: 'video-import', payload }) |
227 | 226 | ||