From: Chocobozzz Date: Thu, 12 Mar 2020 14:37:28 +0000 (+0100) Subject: Fix re running HLS transcoding X-Git-Tag: v2.2.0-rc.1~370 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=c547bbf96a46166c4b4548413b092c58f7b0e37a;p=github%2FChocobozzz%2FPeerTube.git Fix re running HLS transcoding --- 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)