diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-23 14:39:52 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-23 14:39:52 +0200 |
commit | 9d3ef9fe052ed29bd67566754cb28662bd122234 (patch) | |
tree | 7b704dbc0b2c8b4ca18bef2409d640d0019c3d0a /shared/models/videos/video.model.ts | |
parent | 2a2c19dfef7a9aa313c6ca0798f271c9a63449a9 (diff) | |
download | PeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.tar.gz PeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.tar.zst PeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.zip |
Use ISO 639 for languages
Diffstat (limited to 'shared/models/videos/video.model.ts')
-rw-r--r-- | shared/models/videos/video.model.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/models/videos/video.model.ts b/shared/models/videos/video.model.ts index 70132c050..259826689 100644 --- a/shared/models/videos/video.model.ts +++ b/shared/models/videos/video.model.ts | |||
@@ -5,7 +5,7 @@ import { VideoChannel } from './video-channel.model' | |||
5 | import { VideoPrivacy } from './video-privacy.enum' | 5 | import { VideoPrivacy } from './video-privacy.enum' |
6 | 6 | ||
7 | export interface VideoConstant <T> { | 7 | export interface VideoConstant <T> { |
8 | id: number | 8 | id: T |
9 | label: string | 9 | label: string |
10 | } | 10 | } |
11 | 11 | ||
@@ -25,7 +25,7 @@ export interface Video { | |||
25 | publishedAt: Date | string | 25 | publishedAt: Date | string |
26 | category: VideoConstant<number> | 26 | category: VideoConstant<number> |
27 | licence: VideoConstant<number> | 27 | licence: VideoConstant<number> |
28 | language: VideoConstant<number> | 28 | language: VideoConstant<string> |
29 | privacy: VideoConstant<VideoPrivacy> | 29 | privacy: VideoConstant<VideoPrivacy> |
30 | description: string | 30 | description: string |
31 | duration: number | 31 | duration: number |