diff options
Diffstat (limited to 'shared/models/videos/video.model.ts')
-rw-r--r-- | shared/models/videos/video.model.ts | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index 4a7e399a2..dadde38af 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts | |||
@@ -43,13 +43,6 @@ export interface Video { | |||
43 | dislikes: number | 43 | dislikes: number |
44 | nsfw: boolean | 44 | nsfw: boolean |
45 | 45 | ||
46 | waitTranscoding?: boolean | ||
47 | state?: VideoConstant<VideoState> | ||
48 | scheduledUpdate?: VideoScheduleUpdate | ||
49 | |||
50 | blacklisted?: boolean | ||
51 | blacklistedReason?: string | ||
52 | |||
53 | account: AccountSummary | 46 | account: AccountSummary |
54 | channel: VideoChannelSummary | 47 | channel: VideoChannelSummary |
55 | 48 | ||
@@ -58,6 +51,17 @@ export interface Video { | |||
58 | } | 51 | } |
59 | 52 | ||
60 | pluginData?: any | 53 | pluginData?: any |
54 | |||
55 | // Additional attributes dependending on the query | ||
56 | waitTranscoding?: boolean | ||
57 | state?: VideoConstant<VideoState> | ||
58 | scheduledUpdate?: VideoScheduleUpdate | ||
59 | |||
60 | blacklisted?: boolean | ||
61 | blacklistedReason?: string | ||
62 | |||
63 | blockedOwner?: boolean | ||
64 | blockedServer?: boolean | ||
61 | } | 65 | } |
62 | 66 | ||
63 | export interface VideoDetails extends Video { | 67 | export interface VideoDetails extends Video { |
@@ -70,7 +74,7 @@ export interface VideoDetails extends Video { | |||
70 | commentsEnabled: boolean | 74 | commentsEnabled: boolean |
71 | downloadEnabled: boolean | 75 | downloadEnabled: boolean |
72 | 76 | ||
73 | // Not optional in details (unlike in Video) | 77 | // Not optional in details (unlike in parent Video) |
74 | waitTranscoding: boolean | 78 | waitTranscoding: boolean |
75 | state: VideoConstant<VideoState> | 79 | state: VideoConstant<VideoState> |
76 | 80 | ||