Fix redundancy federation in some cases

This commit is contained in:
Chocobozzz
2020-12-17 09:23:57 +01:00
parent 9e454eba57
commit 9cfeb3cf98
3 changed files with 17 additions and 4 deletions

View File

@@ -651,7 +651,9 @@ export class VideoRedundancyModel extends Model {
getVideo () {
if (this.VideoFile) return this.VideoFile.Video
return this.VideoStreamingPlaylist.Video
if (this.VideoStreamingPlaylist.Video) return this.VideoStreamingPlaylist.Video
return undefined
}
isOwned () {