aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-29 10:54:27 +0200
committerChocobozzz <chocobozzz@cpy.re>2021-10-29 11:48:21 +0200
commit3c10840fa90fc88fc98e8169faf4745ff6c80893 (patch)
tree9a60c4de766700fbc33804b06ec46279b20c855e /shared
parent2760b454a761f6af3138b2fb5f34340772ab0d1e (diff)
downloadPeerTube-3c10840fa90fc88fc98e8169faf4745ff6c80893.tar.gz
PeerTube-3c10840fa90fc88fc98e8169faf4745ff6c80893.tar.zst
PeerTube-3c10840fa90fc88fc98e8169faf4745ff6c80893.zip
Add video file size info in admin videos list
Diffstat (limited to 'shared')
-rw-r--r--shared/models/videos/video-include.enum.ts3
-rw-r--r--shared/models/videos/video.model.ts5
2 files changed, 6 insertions, 2 deletions
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 {
3 NOT_PUBLISHED_STATE = 1 << 0, 3 NOT_PUBLISHED_STATE = 1 << 0,
4 HIDDEN_PRIVACY = 1 << 1, 4 HIDDEN_PRIVACY = 1 << 1,
5 BLACKLISTED = 1 << 2, 5 BLACKLISTED = 1 << 2,
6 BLOCKED_OWNER = 1 << 3 6 BLOCKED_OWNER = 1 << 3,
7 FILES = 1 << 4
7} 8}
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 {
62 62
63 blockedOwner?: boolean 63 blockedOwner?: boolean
64 blockedServer?: boolean 64 blockedServer?: boolean
65
66 files?: VideoFile[]
67 streamingPlaylists?: VideoStreamingPlaylist[]
65} 68}
66 69
67export interface VideoDetails extends Video { 70export interface VideoDetails extends Video {
@@ -70,7 +73,6 @@ export interface VideoDetails extends Video {
70 channel: VideoChannel 73 channel: VideoChannel
71 account: Account 74 account: Account
72 tags: string[] 75 tags: string[]
73 files: VideoFile[]
74 commentsEnabled: boolean 76 commentsEnabled: boolean
75 downloadEnabled: boolean 77 downloadEnabled: boolean
76 78
@@ -80,5 +82,6 @@ export interface VideoDetails extends Video {
80 82
81 trackerUrls: string[] 83 trackerUrls: string[]
82 84
85 files: VideoFile[]
83 streamingPlaylists: VideoStreamingPlaylist[] 86 streamingPlaylists: VideoStreamingPlaylist[]
84} 87}