X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Fobject-storage%2Fvideos.ts;h=9152c535295eb3108bb3a95d4e3eb65c81272d05;hb=d4fff51d96925b5704c97dd673dd779030b1aced;hp=57d978e4cc3bbc85eafc35068d5b7ca51a5cd312;hpb=34023e12534f22f28d0b5afc1db3fdf2fd1e7e60;p=github%2FChocobozzz%2FPeerTube.git 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,