aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-file.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video-file.ts')
-rw-r--r--server/models/video/video-file.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/models/video/video-file.ts b/server/models/video/video-file.ts
index 8c8fc0b51..5048cf9b7 100644
--- a/server/models/video/video-file.ts
+++ b/server/models/video/video-file.ts
@@ -329,6 +329,10 @@ export class VideoFileModel extends Model<VideoFileModel> {
329 return !!MIMETYPES.AUDIO.EXT_MIMETYPE[this.extname] 329 return !!MIMETYPES.AUDIO.EXT_MIMETYPE[this.extname]
330 } 330 }
331 331
332 isLive () {
333 return this.size === -1
334 }
335
332 hasSameUniqueKeysThan (other: MVideoFile) { 336 hasSameUniqueKeysThan (other: MVideoFile) {
333 return this.fps === other.fps && 337 return this.fps === other.fps &&
334 this.resolution === other.resolution && 338 this.resolution === other.resolution &&