aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-09-25 16:19:35 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-11-09 15:33:04 +0100
commitfb7194043d0486ce0a6a40b2ffbdf32878c33a6f (patch)
tree6ed304a5d730a75da0a4460b3009df88684fa598 /server/models/video
parenta5cf76afa378aae81af2a9b0ce548e5d2582f832 (diff)
downloadPeerTube-fb7194043d0486ce0a6a40b2ffbdf32878c33a6f.tar.gz
PeerTube-fb7194043d0486ce0a6a40b2ffbdf32878c33a6f.tar.zst
PeerTube-fb7194043d0486ce0a6a40b2ffbdf32878c33a6f.zip
Check live duration and size
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video-live.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/server/models/video/video-live.ts b/server/models/video/video-live.ts
index 8608bc84c..a1dd80d3c 100644
--- a/server/models/video/video-live.ts
+++ b/server/models/video/video-live.ts
@@ -30,10 +30,18 @@ import { VideoBlacklistModel } from './video-blacklist'
30}) 30})
31export class VideoLiveModel extends Model<VideoLiveModel> { 31export class VideoLiveModel extends Model<VideoLiveModel> {
32 32
33 @AllowNull(false) 33 @AllowNull(true)
34 @Column(DataType.STRING) 34 @Column(DataType.STRING)
35 streamKey: string 35 streamKey: string
36 36
37 @AllowNull(false)
38 @Column
39 perpetualLive: boolean
40
41 @AllowNull(false)
42 @Column
43 saveReplay: boolean
44
37 @CreatedAt 45 @CreatedAt
38 createdAt: Date 46 createdAt: Date
39 47