1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Metadata to know if the caption is auto generated

This commit is contained in:
Chocobozzz 2024-06-27 15:29:26 +02:00
parent 1bfb791e05
commit fd4831e502
No known key found for this signature in database
GPG key ID: 583A612D890159BE
22 changed files with 101 additions and 29 deletions

View file

@ -81,7 +81,12 @@ async function createVideoCaption (req: express.Request, res: express.Response)
const captionLanguage = req.params.captionLanguage
const videoCaption = await createLocalCaption({ video, language: captionLanguage, path: videoCaptionPhysicalFile.path })
const videoCaption = await createLocalCaption({
video,
language: captionLanguage,
path: videoCaptionPhysicalFile.path,
automaticallyGenerated: false
})
await sequelizeTypescript.transaction(async t => {
await federateVideoIfNeeded(video, false, t)