Skip to content

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

Fix re running HLS transcoding

Chocobozzzc547bbf96a46
diff --git a/server/lib/video-transcoding.ts b/server/lib/video-transcoding.ts
index ab1e917f3d..dcda82e0a1 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)