diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-12 09:37:01 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-02-12 09:37:01 +0100 |
commit | e3b4c084cd0935dd93b1d737c4fc88c65ab5bcc1 (patch) | |
tree | 5d7cbffb47a53d192265103f49a14ac6b504daca /server/controllers | |
parent | 06bee93748db63d25b8f3b24cd0eeba97a0bbfda (diff) | |
download | PeerTube-e3b4c084cd0935dd93b1d737c4fc88c65ab5bcc1.tar.gz PeerTube-e3b4c084cd0935dd93b1d737c4fc88c65ab5bcc1.tar.zst PeerTube-e3b4c084cd0935dd93b1d737c4fc88c65ab5bcc1.zip |
Guess if we need to generate the thumbnail for imports
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/videos/import.ts | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts index 96499dffb..01f41e7bc 100644 --- a/server/controllers/api/videos/import.ts +++ b/server/controllers/api/videos/import.ts | |||
@@ -218,8 +218,6 @@ async function addYoutubeDLImport (req: express.Request, res: express.Response) | |||
218 | const payload = { | 218 | const payload = { |
219 | type: 'youtube-dl' as 'youtube-dl', | 219 | type: 'youtube-dl' as 'youtube-dl', |
220 | videoImportId: videoImport.id, | 220 | videoImportId: videoImport.id, |
221 | generateThumbnail: !thumbnailModel, | ||
222 | generatePreview: !previewModel, | ||
223 | fileExt: `.${youtubeDLInfo.ext || 'mp4'}` | 221 | fileExt: `.${youtubeDLInfo.ext || 'mp4'}` |
224 | } | 222 | } |
225 | await JobQueue.Instance.createJobWithPromise({ type: 'video-import', payload }) | 223 | await JobQueue.Instance.createJobWithPromise({ type: 'video-import', payload }) |