diff options
Diffstat (limited to 'client/src/app/shared/video/video.model.ts')
-rw-r--r-- | client/src/app/shared/video/video.model.ts | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/client/src/app/shared/video/video.model.ts b/client/src/app/shared/video/video.model.ts index 50ca9eb99..7b68933a1 100644 --- a/client/src/app/shared/video/video.model.ts +++ b/client/src/app/shared/video/video.model.ts | |||
@@ -2,18 +2,16 @@ import { Account } from '@app/shared/account/account.model' | |||
2 | import { User } from '../' | 2 | import { User } from '../' |
3 | import { Video as VideoServerModel } from '../../../../../shared' | 3 | import { Video as VideoServerModel } from '../../../../../shared' |
4 | import { Avatar } from '../../../../../shared/models/avatars/avatar.model' | 4 | import { Avatar } from '../../../../../shared/models/avatars/avatar.model' |
5 | import { VideoConstant } from '../../../../../shared/models/videos/video.model' | ||
5 | import { getAbsoluteAPIUrl } from '../misc/utils' | 6 | import { getAbsoluteAPIUrl } from '../misc/utils' |
6 | 7 | ||
7 | export class Video implements VideoServerModel { | 8 | export class Video implements VideoServerModel { |
8 | by: string | 9 | by: string |
9 | createdAt: Date | 10 | createdAt: Date |
10 | updatedAt: Date | 11 | updatedAt: Date |
11 | categoryLabel: string | 12 | category: VideoConstant<number> |
12 | category: number | 13 | licence: VideoConstant<number> |
13 | licenceLabel: string | 14 | language: VideoConstant<number> |
14 | licence: number | ||
15 | languageLabel: string | ||
16 | language: number | ||
17 | description: string | 15 | description: string |
18 | duration: number | 16 | duration: number |
19 | durationLabel: string | 17 | durationLabel: string |
@@ -58,11 +56,8 @@ export class Video implements VideoServerModel { | |||
58 | const absoluteAPIUrl = getAbsoluteAPIUrl() | 56 | const absoluteAPIUrl = getAbsoluteAPIUrl() |
59 | 57 | ||
60 | this.createdAt = new Date(hash.createdAt.toString()) | 58 | this.createdAt = new Date(hash.createdAt.toString()) |
61 | this.categoryLabel = hash.categoryLabel | ||
62 | this.category = hash.category | 59 | this.category = hash.category |
63 | this.licenceLabel = hash.licenceLabel | ||
64 | this.licence = hash.licence | 60 | this.licence = hash.licence |
65 | this.languageLabel = hash.languageLabel | ||
66 | this.language = hash.language | 61 | this.language = hash.language |
67 | this.description = hash.description | 62 | this.description = hash.description |
68 | this.duration = hash.duration | 63 | this.duration = hash.duration |