From 49c3bf6fa25afb49c8a27937147043c6e4ce95c3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 26 Nov 2019 16:36:48 +0100 Subject: Fix duplicate HLS resolution in master playlist --- server/lib/video-transcoding.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'server/lib/video-transcoding.ts') diff --git a/server/lib/video-transcoding.ts b/server/lib/video-transcoding.ts index ab5200936..03bc21559 100644 --- a/server/lib/video-transcoding.ts +++ b/server/lib/video-transcoding.ts @@ -205,10 +205,8 @@ async function generateHlsPlaylist (video: MVideoWithFile, resolution: VideoReso await createTorrentAndSetInfoHash(videoStreamingPlaylist, newVideoFile) - const updatedVideoFile = await newVideoFile.save() - + await newVideoFile.save() videoStreamingPlaylist.VideoFiles = await videoStreamingPlaylist.$get('VideoFiles') as VideoFileModel[] - videoStreamingPlaylist.VideoFiles.push(updatedVideoFile) video.setHLSPlaylist(videoStreamingPlaylist) -- cgit v1.2.3