Don't create pendingTranscription twice

This commit is contained in:
Chocobozzz
2024-07-03 08:32:14 +02:00
parent 91302ea12a
commit 2d26eff129
3 changed files with 19 additions and 3 deletions

View File

@@ -75,8 +75,6 @@ export class TranscriptionJobHandler extends AbstractJobHandler<CreateOptions, R
priority: JOB_PRIORITY.TRANSCODING
})
await VideoJobInfoModel.increaseOrCreate(video.uuid, 'pendingTranscription')
return job
}

View File

@@ -139,7 +139,7 @@ export async function onTranscriptionEnded (options: {
const { video, language, vttPath, lTags: customLTags = [] } = options
if (!isVideoCaptionLanguageValid(language)) {
logger.warn(`Invalid transcription language for video ${video.uuid}`, this.lTags(video.uuid))
logger.warn(`Invalid transcription language for video ${video.uuid}`, lTags(video.uuid))
return
}