aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos/import/video-import.model.ts
blob: 6aed7a91a1013472f67aa4370e65d36c4ee49de6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { Video } from '../video.model'
import { VideoConstant } from '../video-constant.model'
import { VideoImportState } from './video-import-state.enum'

export interface VideoImport {
  id: number

  targetUrl: string
  magnetUri: string
  torrentName: string

  createdAt: string
  updatedAt: string
  originallyPublishedAt?: string
  state: VideoConstant<VideoImportState>
  error?: string

  video?: Video & { tags: string[] }

  videoChannelSync?: {
    id: number
    externalChannelUrl: string
  }
}