Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix redundancy count

Chocobozzzf52003418410
diff --git a/server/core/models/redundancy/video-redundancy.ts b/server/core/models/redundancy/video-redundancy.ts
index 824536b599..5142315d66 100644
--- a/server/core/models/redundancy/video-redundancy.ts
+++ b/server/core/models/redundancy/video-redundancy.ts
@@ -501,7 +501,8 @@ export class VideoRedundancyModel extends SequelizeModel<VideoRedundancyModel> {
[Op.in]: literal(
'(' +
'SELECT "videoId" FROM "videoStreamingPlaylist" ' +
- 'INNER JOIN "videoRedundancy" ON "videoRedundancy"."videoStreamingPlaylistId" = "videoStreamingPlaylist".id' +
+ 'INNER JOIN "videoRedundancy" ON "videoRedundancy"."videoStreamingPlaylistId" = "videoStreamingPlaylist".id AND ' +
+ ' "videoRedundancy"."strategy" IS NOT NULL' +
')'
)
}