mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Support additional video extensions
This commit is contained in:
parent
8923187455
commit
14e2014acc
39 changed files with 268 additions and 90 deletions
|
@ -2,7 +2,7 @@ import * as express from 'express'
|
|||
import { asyncMiddleware, asyncRetryTransactionMiddleware, authenticate } from '../../../middlewares'
|
||||
import { addVideoCaptionValidator, deleteVideoCaptionValidator, listVideoCaptionsValidator } from '../../../middlewares/validators'
|
||||
import { createReqFiles } from '../../../helpers/express-utils'
|
||||
import { CONFIG, sequelizeTypescript, VIDEO_CAPTIONS_MIMETYPE_EXT } from '../../../initializers'
|
||||
import { CONFIG, MIMETYPES, sequelizeTypescript } from '../../../initializers'
|
||||
import { getFormattedObjects } from '../../../helpers/utils'
|
||||
import { VideoCaptionModel } from '../../../models/video/video-caption'
|
||||
import { VideoModel } from '../../../models/video/video'
|
||||
|
@ -12,7 +12,7 @@ import { moveAndProcessCaptionFile } from '../../../helpers/captions-utils'
|
|||
|
||||
const reqVideoCaptionAdd = createReqFiles(
|
||||
[ 'captionfile' ],
|
||||
VIDEO_CAPTIONS_MIMETYPE_EXT,
|
||||
MIMETYPES.VIDEO_CAPTIONS.MIMETYPE_EXT,
|
||||
{
|
||||
captionfile: CONFIG.STORAGE.CAPTIONS_DIR
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue