X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fmodels%2Fvideos%2Fvideo.model.ts;h=26cb595e73ab0acf305ca41f7c04e72d3d3fcac3;hb=df1db951c512a58110171d046ef367789df02733;hp=158ee8f05f408904128f6c37d9a38d91e52451cd;hpb=1e7eb457eda647b4fa22a0ae8e59c0a618f662f8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index 158ee8f05..26cb595e7 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts @@ -10,6 +10,8 @@ import { VideoStreamingPlaylist } from './video-streaming-playlist.model' export interface Video { id: number uuid: string + shortUUID: string + createdAt: Date | string updatedAt: Date | string publishedAt: Date | string @@ -23,6 +25,8 @@ export interface Video { isLocal: boolean name: string + isLive: boolean + thumbnailPath: string thumbnailUrl?: string @@ -32,21 +36,13 @@ export interface Video { embedPath: string embedUrl?: string - // When using the search index - url?: string + url: string views: number likes: number dislikes: number nsfw: boolean - waitTranscoding?: boolean - state?: VideoConstant - scheduledUpdate?: VideoScheduleUpdate - - blacklisted?: boolean - blacklistedReason?: string - account: AccountSummary channel: VideoChannelSummary @@ -55,6 +51,20 @@ export interface Video { } pluginData?: any + + // Additional attributes dependending on the query + waitTranscoding?: boolean + state?: VideoConstant + scheduledUpdate?: VideoScheduleUpdate + + blacklisted?: boolean + blacklistedReason?: string + + blockedOwner?: boolean + blockedServer?: boolean + + files?: VideoFile[] + streamingPlaylists?: VideoStreamingPlaylist[] } export interface VideoDetails extends Video { @@ -63,15 +73,15 @@ export interface VideoDetails extends Video { channel: VideoChannel account: Account tags: string[] - files: VideoFile[] commentsEnabled: boolean downloadEnabled: boolean - // Not optional in details (unlike in Video) + // Not optional in details (unlike in parent Video) waitTranscoding: boolean state: VideoConstant trackerUrls: string[] + files: VideoFile[] streamingPlaylists: VideoStreamingPlaylist[] }