]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/videos/video.model.ts
Add http tracker in torrent too
[github/Chocobozzz/PeerTube.git] / shared / models / videos / video.model.ts
index 32463933d3e7ff0497eba46ef542191121e992ec..39d1edc061253f6182ed11a161fb2551fb5e7276 100644 (file)
@@ -1,4 +1,6 @@
+import { Account } from '../actors'
 import { VideoChannel } from './video-channel.model'
+import { VideoPrivacy } from './video-privacy.enum'
 
 export interface VideoFile {
   magnetUri: string
@@ -12,7 +14,7 @@ export interface VideoFile {
 export interface Video {
   id: number
   uuid: string
-  author: string
+  accountName: string
   createdAt: Date | string
   updatedAt: Date | string
   categoryLabel: string
@@ -25,8 +27,7 @@ export interface Video {
   duration: number
   isLocal: boolean
   name: string
-  podHost: string
-  tags: string[]
+  serverHost: string
   thumbnailPath: string
   previewPath: string
   embedPath: string
@@ -37,6 +38,12 @@ export interface Video {
 }
 
 export interface VideoDetails extends Video {
+  privacy: VideoPrivacy
+  privacyLabel: string
+  descriptionPath: string
   channel: VideoChannel
+  tags: string[]
   files: VideoFile[]
+  account: Account
+  commentsEnabled: boolean
 }