aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/captions-utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/captions-utils.ts')
-rw-r--r--server/helpers/captions-utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/captions-utils.ts b/server/helpers/captions-utils.ts
index ca03f7a49..f6e5b9784 100644
--- a/server/helpers/captions-utils.ts
+++ b/server/helpers/captions-utils.ts
@@ -1,10 +1,10 @@
1import { createReadStream, createWriteStream, move, remove } from 'fs-extra' 1import { createReadStream, createWriteStream, move, remove } from 'fs-extra'
2import { join } from 'path' 2import { join } from 'path'
3import * as srt2vtt from 'srt-to-vtt' 3import srt2vtt from 'srt-to-vtt'
4import { Transform } from 'stream'
4import { MVideoCaption } from '@server/types/models' 5import { MVideoCaption } from '@server/types/models'
5import { CONFIG } from '../initializers/config' 6import { CONFIG } from '../initializers/config'
6import { pipelinePromise } from './core-utils' 7import { pipelinePromise } from './core-utils'
7import { Transform } from 'stream'
8 8
9async function moveAndProcessCaptionFile (physicalFile: { filename: string, path: string }, videoCaption: MVideoCaption) { 9async function moveAndProcessCaptionFile (physicalFile: { filename: string, path: string }, videoCaption: MVideoCaption) {
10 const videoCaptionsDir = CONFIG.STORAGE.CAPTIONS_DIR 10 const videoCaptionsDir = CONFIG.STORAGE.CAPTIONS_DIR