1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Fix caption in object storage export

This commit is contained in:
Chocobozzz 2025-02-10 08:10:05 +01:00
parent b6b6922006
commit 0184aa9be7
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 29 additions and 4 deletions

View file

@ -252,3 +252,18 @@ export function getOriginalFileReadStream (options: {
rangeHeader
})
}
export function getCaptionReadStream (options: {
filename: string
rangeHeader: string
}) {
const { filename, rangeHeader } = options
const key = generateCaptionObjectStorageKey(filename)
return createObjectReadStream({
key,
bucketInfo: CONFIG.OBJECT_STORAGE.CAPTIONS,
rangeHeader
})
}