1
0
Fork 0

remove duplicate file checks in video model (#3289)

- server/models/video/video.ts (delete duplicate): build duplicate file id addition in buildAPIResult
This commit is contained in:
Arman 2020-11-11 23:14:58 +03:30 committed by GitHub
parent a30995fc27
commit b8fa24491c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -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 = []