1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Don't create pendingTranscription twice

This commit is contained in:
Chocobozzz 2024-07-03 08:32:14 +02:00
parent 91302ea12a
commit 2d26eff129
No known key found for this signature in database
GPG key ID: 583A612D890159BE
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
}