Improve captions AP updater

This commit is contained in:
Chocobozzz 2021-06-14 11:54:38 +02:00
parent 72f611ca15
commit 367994c521
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 0 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import { logger, loggerTagsFactory, LoggerTagsFn } from '@server/helpers/logger'
import { Notifier } from '@server/lib/notifier' import { Notifier } from '@server/lib/notifier'
import { PeerTubeSocket } from '@server/lib/peertube-socket' import { PeerTubeSocket } from '@server/lib/peertube-socket'
import { autoBlacklistVideoIfNeeded } from '@server/lib/video-blacklist' import { autoBlacklistVideoIfNeeded } from '@server/lib/video-blacklist'
import { VideoCaptionModel } from '@server/models/video/video-caption'
import { VideoLiveModel } from '@server/models/video/video-live' import { VideoLiveModel } from '@server/models/video/video-live'
import { MActor, MChannelAccountLight, MChannelId, MVideoAccountLightBlacklistAllFiles, MVideoFullLight } from '@server/types/models' import { MActor, MChannelAccountLight, MChannelId, MVideoAccountLightBlacklistAllFiles, MVideoFullLight } from '@server/types/models'
import { VideoObject, VideoPrivacy } from '@shared/models' import { VideoObject, VideoPrivacy } from '@shared/models'
@ -136,8 +135,6 @@ export class APVideoUpdater extends APVideoAbstractBuilder {
} }
private async setCaptions (videoUpdated: MVideoFullLight, t: Transaction) { private async setCaptions (videoUpdated: MVideoFullLight, t: Transaction) {
await VideoCaptionModel.deleteAllCaptionsOfRemoteVideo(videoUpdated.id, t)
await this.insertOrReplaceCaptions(videoUpdated, t) await this.insertOrReplaceCaptions(videoUpdated, t)
} }