Correctly fix s3 live sync

pull/5817/head
Chocobozzz 2023-05-19 14:44:25 +02:00
parent bcdfd87906
commit ec720affe9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View File

@ -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,