diff options
Diffstat (limited to 'server/controllers/api/videos/import.ts')
-rw-r--r-- | server/controllers/api/videos/import.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts index ed223cbc9..da0832258 100644 --- a/server/controllers/api/videos/import.ts +++ b/server/controllers/api/videos/import.ts | |||
@@ -174,7 +174,10 @@ async function addYoutubeDLImport (req: express.Request, res: express.Response) | |||
174 | videoImportId: videoImport.id, | 174 | videoImportId: videoImport.id, |
175 | thumbnailUrl: youtubeDLInfo.thumbnailUrl, | 175 | thumbnailUrl: youtubeDLInfo.thumbnailUrl, |
176 | downloadThumbnail: !thumbnailModel, | 176 | downloadThumbnail: !thumbnailModel, |
177 | downloadPreview: !previewModel | 177 | downloadPreview: !previewModel, |
178 | fileExt: youtubeDLInfo.fileExt | ||
179 | ? `.${youtubeDLInfo.fileExt}` | ||
180 | : '.mp4' | ||
178 | } | 181 | } |
179 | await JobQueue.Instance.createJobWithPromise({ type: 'video-import', payload }) | 182 | await JobQueue.Instance.createJobWithPromise({ type: 'video-import', payload }) |
180 | 183 | ||