From c547bbf96a46166c4b4548413b092c58f7b0e37a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 12 Mar 2020 15:37:28 +0100 Subject: Fix re running HLS transcoding --- server/lib/video-transcoding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/lib') diff --git a/server/lib/video-transcoding.ts b/server/lib/video-transcoding.ts index ab1e917f3..dcda82e0a 100644 --- a/server/lib/video-transcoding.ts +++ b/server/lib/video-transcoding.ts @@ -207,7 +207,7 @@ async function generateHlsPlaylist (video: MVideoWithFile, resolution: VideoReso await createTorrentAndSetInfoHash(videoStreamingPlaylist, newVideoFile) - await newVideoFile.save() + await VideoFileModel.customUpsert(newVideoFile, 'streaming-playlist', undefined) videoStreamingPlaylist.VideoFiles = await videoStreamingPlaylist.$get('VideoFiles') video.setHLSPlaylist(videoStreamingPlaylist) -- cgit v1.2.3