aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/lib/notifier/shared/video-publication/owned-publication-after-transcoding.ts
blob: 4fab1090f1ed2e989b6c2be131c2e5ceda8f570c (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                                               
import { AbstractOwnedVideoPublication } from './abstract-owned-video-publication'

export class OwnedPublicationAfterTranscoding extends AbstractOwnedVideoPublication {

  isDisabled () {
    // Don't notify if didn't wait for transcoding or video is still blacklisted/waiting for scheduled update
    return !this.payload.waitTranscoding || !!this.payload.VideoBlacklist || !!this.payload.ScheduleVideoUpdate
  }
}