aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/job-queue/handlers/video-file.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-07 17:51:25 +0200
committerChocobozzz <me@florianbigard.com>2018-06-07 17:57:11 +0200
commit8eb8bc201e0861599702a4048ff7edc59ad34d89 (patch)
tree04a89cb3dd58f44ce0eaac424633498cf07160b4 /server/lib/job-queue/handlers/video-file.ts
parent54d9d09bb165d4b47ddc1c10ba81b41b04895911 (diff)
downloadPeerTube-8eb8bc201e0861599702a4048ff7edc59ad34d89.tar.gz
PeerTube-8eb8bc201e0861599702a4048ff7edc59ad34d89.tar.zst
PeerTube-8eb8bc201e0861599702a4048ff7edc59ad34d89.zip
Pick average video file insead of max quality
Diffstat (limited to 'server/lib/job-queue/handlers/video-file.ts')
-rw-r--r--server/lib/job-queue/handlers/video-file.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/job-queue/handlers/video-file.ts b/server/lib/job-queue/handlers/video-file.ts
index a6fce4279..85f7dbfc2 100644
--- a/server/lib/job-queue/handlers/video-file.ts
+++ b/server/lib/job-queue/handlers/video-file.ts
@@ -85,7 +85,7 @@ async function onVideoFileOptimizerSuccess (video: VideoModel, isNewVideo: boole
85 if (!videoDatabase) return undefined 85 if (!videoDatabase) return undefined
86 86
87 if (video.privacy !== VideoPrivacy.PRIVATE) { 87 if (video.privacy !== VideoPrivacy.PRIVATE) {
88 if (isNewVideo === true) { 88 if (isNewVideo !== false) {
89 // Now we'll add the video's meta data to our followers 89 // Now we'll add the video's meta data to our followers
90 await sequelizeTypescript.transaction(async t => { 90 await sequelizeTypescript.transaction(async t => {
91 await sendCreateVideo(video, t) 91 await sendCreateVideo(video, t)