diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-04 15:55:51 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-05-09 08:57:34 +0200 |
commit | ab14f0e0dca878dbaccc8f6a895a68e4269c9873 (patch) | |
tree | 078247f8620ee1f3260b8c3e3336059863273eb8 /server/lib/job-queue | |
parent | 5e47f6ab984a7d00782e4c7030afffa1ba480add (diff) | |
download | PeerTube-ab14f0e0dca878dbaccc8f6a895a68e4269c9873.tar.gz PeerTube-ab14f0e0dca878dbaccc8f6a895a68e4269c9873.tar.zst PeerTube-ab14f0e0dca878dbaccc8f6a895a68e4269c9873.zip |
Prefer video studio instead of video edition
Clearer and easier to find in the project
Diffstat (limited to 'server/lib/job-queue')
-rw-r--r-- | server/lib/job-queue/handlers/video-studio-edition.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/job-queue/handlers/video-studio-edition.ts b/server/lib/job-queue/handlers/video-studio-edition.ts index df73caf72..caf051bfa 100644 --- a/server/lib/job-queue/handlers/video-studio-edition.ts +++ b/server/lib/job-queue/handlers/video-studio-edition.ts | |||
@@ -6,7 +6,7 @@ import { CONFIG } from '@server/initializers/config' | |||
6 | import { VideoTranscodingProfilesManager } from '@server/lib/transcoding/default-transcoding-profiles' | 6 | import { VideoTranscodingProfilesManager } from '@server/lib/transcoding/default-transcoding-profiles' |
7 | import { isAbleToUploadVideo } from '@server/lib/user' | 7 | import { isAbleToUploadVideo } from '@server/lib/user' |
8 | import { VideoPathManager } from '@server/lib/video-path-manager' | 8 | import { VideoPathManager } from '@server/lib/video-path-manager' |
9 | import { approximateIntroOutroAdditionalSize, onVideoEditionEnded, safeCleanupStudioTMPFiles } from '@server/lib/video-studio' | 9 | import { approximateIntroOutroAdditionalSize, onVideoStudioEnded, safeCleanupStudioTMPFiles } from '@server/lib/video-studio' |
10 | import { UserModel } from '@server/models/user/user' | 10 | import { UserModel } from '@server/models/user/user' |
11 | import { VideoModel } from '@server/models/video/video' | 11 | import { VideoModel } from '@server/models/video/video' |
12 | import { MVideo, MVideoFullLight } from '@server/types/models' | 12 | import { MVideo, MVideoFullLight } from '@server/types/models' |
@@ -24,7 +24,7 @@ import { | |||
24 | } from '@shared/models' | 24 | } from '@shared/models' |
25 | import { logger, loggerTagsFactory } from '../../../helpers/logger' | 25 | import { logger, loggerTagsFactory } from '../../../helpers/logger' |
26 | 26 | ||
27 | const lTagsBase = loggerTagsFactory('video-edition') | 27 | const lTagsBase = loggerTagsFactory('video-studio') |
28 | 28 | ||
29 | async function processVideoStudioEdition (job: Job) { | 29 | async function processVideoStudioEdition (job: Job) { |
30 | const payload = job.data as VideoStudioEditionPayload | 30 | const payload = job.data as VideoStudioEditionPayload |
@@ -74,7 +74,7 @@ async function processVideoStudioEdition (job: Job) { | |||
74 | 74 | ||
75 | logger.info('Video edition ended for video %s.', video.uuid, lTags) | 75 | logger.info('Video edition ended for video %s.', video.uuid, lTags) |
76 | 76 | ||
77 | await onVideoEditionEnded({ video, editionResultPath, tasks: payload.tasks }) | 77 | await onVideoStudioEnded({ video, editionResultPath, tasks: payload.tasks }) |
78 | } catch (err) { | 78 | } catch (err) { |
79 | await safeCleanupStudioTMPFiles(payload.tasks) | 79 | await safeCleanupStudioTMPFiles(payload.tasks) |
80 | 80 | ||