]> 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 bbcada845412a48b5187410eb86c111afcaab80c..39d1edc061253f6182ed11a161fb2551fb5e7276 100644 (file)
@@ -1,14 +1,20 @@
+import { Account } from '../actors'
+import { VideoChannel } from './video-channel.model'
+import { VideoPrivacy } from './video-privacy.enum'
+
 export interface VideoFile {
   magnetUri: string
   resolution: number
   resolutionLabel: string
   size: number // Bytes
+  torrentUrl: string
+  fileUrl: string
 }
 
 export interface Video {
   id: number
   uuid: string
-  author: string
+  accountName: string
   createdAt: Date | string
   updatedAt: Date | string
   categoryLabel: string
@@ -21,8 +27,7 @@ export interface Video {
   duration: number
   isLocal: boolean
   name: string
-  podHost: string
-  tags: string[]
+  serverHost: string
   thumbnailPath: string
   previewPath: string
   embedPath: string
@@ -30,5 +35,15 @@ export interface Video {
   likes: number
   dislikes: number
   nsfw: boolean
+}
+
+export interface VideoDetails extends Video {
+  privacy: VideoPrivacy
+  privacyLabel: string
+  descriptionPath: string
+  channel: VideoChannel
+  tags: string[]
   files: VideoFile[]
+  account: Account
+  commentsEnabled: boolean
 }