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:
parent
b6b6922006
commit
0184aa9be7
3 changed files with 29 additions and 4 deletions
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue