mirror of https://github.com/Chocobozzz/PeerTube
Fix get video from redudancy
parent
22845214bf
commit
2e1e4af03b
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue