]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/videos/video.model.ts
Rename Pod -> Server
[github/Chocobozzz/PeerTube.git] / shared / models / videos / video.model.ts
index 82c8763d0ec8767aa052a3ac3f87e897c0ef3779..08b29425cbb39acc8be413225745fd3afe32de11 100644 (file)
@@ -1,15 +1,21 @@
+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
-  createdAt: Date
+  account: string
+  createdAt: Date | string
+  updatedAt: Date | string
   categoryLabel: string
   category: number
   licenceLabel: string
@@ -20,13 +26,21 @@ export interface Video {
   duration: number
   isLocal: boolean
   name: string
-  podHost: string
+  serverHost: string
   tags: string[]
   thumbnailPath: string
   previewPath: string
+  embedPath: string
   views: number
   likes: number
   dislikes: number
   nsfw: boolean
+}
+
+export interface VideoDetails extends Video {
+  privacy: VideoPrivacy
+  privacyLabel: string
+  descriptionPath: string
+  channel: VideoChannel
   files: VideoFile[]
 }