From 2e1e4af03bc9ccd2470a9f293d70dc27596aae24 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 3 Feb 2021 09:57:47 +0100 Subject: Fix get video from redudancy --- server/models/redundancy/video-redundancy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/models/redundancy/video-redundancy.ts b/server/models/redundancy/video-redundancy.ts index 74895fe30..53293df37 100644 --- a/server/models/redundancy/video-redundancy.ts +++ b/server/models/redundancy/video-redundancy.ts @@ -709,9 +709,9 @@ export class VideoRedundancyModel extends Model { } getVideo () { - if (this.VideoFile) return this.VideoFile.Video + if (this.VideoFile?.Video) return this.VideoFile.Video - if (this.VideoStreamingPlaylist.Video) return this.VideoStreamingPlaylist.Video + if (this.VideoStreamingPlaylist?.Video) return this.VideoStreamingPlaylist.Video return undefined } -- cgit v1.2.3