From ec720affe962437b85bd59a83b276c1da2ee7769 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 May 2023 14:44:25 +0200 Subject: [PATCH] Correctly fix s3 live sync --- server/lib/object-storage/videos.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/lib/object-storage/videos.ts b/server/lib/object-storage/videos.ts index 57d978e4c..9152c5352 100644 --- a/server/lib/object-storage/videos.ts +++ b/server/lib/object-storage/videos.ts @@ -13,6 +13,7 @@ import { removeObject, removeObjectByFullKey, removePrefix, + storeContent, storeObject, updateObjectACL, updatePrefixACL @@ -43,7 +44,8 @@ function storeHLSFileFromPath (playlist: MStreamingPlaylistVideo, path: string) } function storeHLSFileFromContent (playlist: MStreamingPlaylistVideo, path: string, content: string) { - return storeObject({ + return storeContent({ + content, inputPath: path, objectStorageKey: generateHLSObjectStorageKey(playlist, basename(path)), bucketInfo: CONFIG.OBJECT_STORAGE.STREAMING_PLAYLISTS, -- 2.41.0