aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-23 14:39:52 +0200
committerChocobozzz <me@florianbigard.com>2018-04-23 14:39:52 +0200
commit9d3ef9fe052ed29bd67566754cb28662bd122234 (patch)
tree7b704dbc0b2c8b4ca18bef2409d640d0019c3d0a /shared/models/videos
parent2a2c19dfef7a9aa313c6ca0798f271c9a63449a9 (diff)
downloadPeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.tar.gz
PeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.tar.zst
PeerTube-9d3ef9fe052ed29bd67566754cb28662bd122234.zip
Use ISO 639 for languages
Diffstat (limited to 'shared/models/videos')
-rw-r--r--shared/models/videos/video-create.model.ts2
-rw-r--r--shared/models/videos/video-update.model.ts2
-rw-r--r--shared/models/videos/video.model.ts4
3 files changed, 4 insertions, 4 deletions
diff --git a/shared/models/videos/video-create.model.ts b/shared/models/videos/video-create.model.ts
index 567a4c79a..562bc1bf2 100644
--- a/shared/models/videos/video-create.model.ts
+++ b/shared/models/videos/video-create.model.ts
@@ -3,7 +3,7 @@ import { VideoPrivacy } from './video-privacy.enum'
3export interface VideoCreate { 3export interface VideoCreate {
4 category?: number 4 category?: number
5 licence?: number 5 licence?: number
6 language?: number 6 language?: string
7 description?: string 7 description?: string
8 support?: string 8 support?: string
9 channelId: number 9 channelId: number
diff --git a/shared/models/videos/video-update.model.ts b/shared/models/videos/video-update.model.ts
index b281ace9a..3a205bb83 100644
--- a/shared/models/videos/video-update.model.ts
+++ b/shared/models/videos/video-update.model.ts
@@ -4,7 +4,7 @@ export interface VideoUpdate {
4 name?: string 4 name?: string
5 category?: number 5 category?: number
6 licence?: number 6 licence?: number
7 language?: number 7 language?: string
8 description?: string 8 description?: string
9 support?: string 9 support?: string
10 privacy?: VideoPrivacy 10 privacy?: VideoPrivacy
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'
5import { VideoPrivacy } from './video-privacy.enum' 5import { VideoPrivacy } from './video-privacy.enum'
6 6
7export interface VideoConstant <T> { 7export 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