aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/object-storage/videos.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-19 14:44:25 +0200
committerChocobozzz <me@florianbigard.com>2023-05-19 14:44:25 +0200
commitec720affe962437b85bd59a83b276c1da2ee7769 (patch)
treebab73c462b3eb26906002ea364181107cc3d26d4 /server/lib/object-storage/videos.ts
parentbcdfd879060f10fd178c558be627928bf93acbff (diff)
downloadPeerTube-ec720affe962437b85bd59a83b276c1da2ee7769.tar.gz
PeerTube-ec720affe962437b85bd59a83b276c1da2ee7769.tar.zst
PeerTube-ec720affe962437b85bd59a83b276c1da2ee7769.zip
Correctly fix s3 live sync
Diffstat (limited to 'server/lib/object-storage/videos.ts')
-rw-r--r--server/lib/object-storage/videos.ts4
1 files changed, 3 insertions, 1 deletions
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 {
13 removeObject, 13 removeObject,
14 removeObjectByFullKey, 14 removeObjectByFullKey,
15 removePrefix, 15 removePrefix,
16 storeContent,
16 storeObject, 17 storeObject,
17 updateObjectACL, 18 updateObjectACL,
18 updatePrefixACL 19 updatePrefixACL
@@ -43,7 +44,8 @@ function storeHLSFileFromPath (playlist: MStreamingPlaylistVideo, path: string)
43} 44}
44 45
45function storeHLSFileFromContent (playlist: MStreamingPlaylistVideo, path: string, content: string) { 46function storeHLSFileFromContent (playlist: MStreamingPlaylistVideo, path: string, content: string) {
46 return storeObject({ 47 return storeContent({
48 content,
47 inputPath: path, 49 inputPath: path,
48 objectStorageKey: generateHLSObjectStorageKey(playlist, basename(path)), 50 objectStorageKey: generateHLSObjectStorageKey(playlist, basename(path)),
49 bucketInfo: CONFIG.OBJECT_STORAGE.STREAMING_PLAYLISTS, 51 bucketInfo: CONFIG.OBJECT_STORAGE.STREAMING_PLAYLISTS,