aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-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,