aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-18 11:25:08 +0200
committerChocobozzz <me@florianbigard.com>2021-08-18 11:25:08 +0200
commit586a7478b609ed4b7518419e91f0a799c23fbaa1 (patch)
tree94bb9445bae3e458b85060e24ab7064ebcfd010a /server/middlewares/validators/videos
parent63436fc5eadc3f58a047fe87be9c4afa84a7a9ca (diff)
downloadPeerTube-586a7478b609ed4b7518419e91f0a799c23fbaa1.tar.gz
PeerTube-586a7478b609ed4b7518419e91f0a799c23fbaa1.tar.zst
PeerTube-586a7478b609ed4b7518419e91f0a799c23fbaa1.zip
Fix caption log
Diffstat (limited to 'server/middlewares/validators/videos')
-rw-r--r--server/middlewares/validators/videos/video-captions.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos/video-captions.ts b/server/middlewares/validators/videos/video-captions.ts
index 2946f3e15..6bc127e01 100644
--- a/server/middlewares/validators/videos/video-captions.ts
+++ b/server/middlewares/validators/videos/video-captions.ts
@@ -17,7 +17,8 @@ const addVideoCaptionValidator = [
17 .custom((_, { req }) => isVideoCaptionFile(req.files, 'captionfile')) 17 .custom((_, { req }) => isVideoCaptionFile(req.files, 'captionfile'))
18 .withMessage( 18 .withMessage(
19 'This caption file is not supported or too large. ' + 19 'This caption file is not supported or too large. ' +
20 `Please, make sure it is under ${CONSTRAINTS_FIELDS.VIDEO_CAPTIONS.CAPTION_FILE.FILE_SIZE} and one of the following mimetypes: ` + 20 `Please, make sure it is under ${CONSTRAINTS_FIELDS.VIDEO_CAPTIONS.CAPTION_FILE.FILE_SIZE.max} bytes ` +
21 'and one of the following mimetypes: ' +
21 Object.keys(MIMETYPES.VIDEO_CAPTIONS.MIMETYPE_EXT).map(key => `${key} (${MIMETYPES.VIDEO_CAPTIONS.MIMETYPE_EXT[key]})`).join(', ') 22 Object.keys(MIMETYPES.VIDEO_CAPTIONS.MIMETYPE_EXT).map(key => `${key} (${MIMETYPES.VIDEO_CAPTIONS.MIMETYPE_EXT[key]})`).join(', ')
22 ), 23 ),
23 24