aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-12 09:37:01 +0100
committerChocobozzz <me@florianbigard.com>2021-02-12 09:37:01 +0100
commite3b4c084cd0935dd93b1d737c4fc88c65ab5bcc1 (patch)
tree5d7cbffb47a53d192265103f49a14ac6b504daca /server/controllers/api/videos
parent06bee93748db63d25b8f3b24cd0eeba97a0bbfda (diff)
downloadPeerTube-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/api/videos')
-rw-r--r--server/controllers/api/videos/import.ts2
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 })