X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=shared%2Fmodels%2Fvideos%2Fvideo.model.ts;h=08b29425cbb39acc8be413225745fd3afe32de11;hb=608624252466acf9f1d9ee1c1170bd4fe4d18d18;hp=82c8763d0ec8767aa052a3ac3f87e897c0ef3779;hpb=93e1258c7cbc0d1235ca6d2a1f7c1875985328b8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index 82c8763d0..08b29425c 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts @@ -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[] }