Fix get video from redudancy

pull/3695/head
Chocobozzz 2021-02-03 09:57:47 +01:00
parent 22845214bf
commit 2e1e4af03b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -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
}