Skip to content

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

remove duplicate file checks in video model (#3289)

Armanb8fa24491c37
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 60f295056d..70839aa892 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1657,13 +1657,6 @@ export class VideoModel extends Model<VideoModel> {
videoFilesDone.add(row.VideoFiles.id)
}
- if (row.VideoFiles?.id && !videoFilesDone.has(row.VideoFiles.id)) {
- const videoFileModel = new VideoFileModel(pick(row.VideoFiles, videoFileKeys))
- videoModel.VideoFiles.push(videoFileModel)
-
- videoFilesDone.add(row.VideoFiles.id)
- }
-
if (row.VideoStreamingPlaylists?.id && !videoStreamingPlaylistMemo[row.VideoStreamingPlaylists.id]) {
const streamingPlaylist = new VideoStreamingPlaylistModel(pick(row.VideoStreamingPlaylists, videoStreamingPlaylistKeys))
streamingPlaylist.VideoFiles = []