From 3c10840fa90fc88fc98e8169faf4745ff6c80893 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 29 Oct 2021 10:54:27 +0200 Subject: Add video file size info in admin videos list --- shared/models/videos/video-include.enum.ts | 3 ++- shared/models/videos/video.model.ts | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'shared') diff --git a/shared/models/videos/video-include.enum.ts b/shared/models/videos/video-include.enum.ts index fa720b348..72fa8cd30 100644 --- a/shared/models/videos/video-include.enum.ts +++ b/shared/models/videos/video-include.enum.ts @@ -3,5 +3,6 @@ export const enum VideoInclude { NOT_PUBLISHED_STATE = 1 << 0, HIDDEN_PRIVACY = 1 << 1, BLACKLISTED = 1 << 2, - BLOCKED_OWNER = 1 << 3 + BLOCKED_OWNER = 1 << 3, + FILES = 1 << 4 } diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index dadde38af..26cb595e7 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts @@ -62,6 +62,9 @@ export interface Video { blockedOwner?: boolean blockedServer?: boolean + + files?: VideoFile[] + streamingPlaylists?: VideoStreamingPlaylist[] } export interface VideoDetails extends Video { @@ -70,7 +73,6 @@ export interface VideoDetails extends Video { channel: VideoChannel account: Account tags: string[] - files: VideoFile[] commentsEnabled: boolean downloadEnabled: boolean @@ -80,5 +82,6 @@ export interface VideoDetails extends Video { trackerUrls: string[] + files: VideoFile[] streamingPlaylists: VideoStreamingPlaylist[] } -- cgit v1.2.3