diff options
Diffstat (limited to 'server/helpers/captions-utils.ts')
-rw-r--r-- | server/helpers/captions-utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/captions-utils.ts b/server/helpers/captions-utils.ts index 8b04f878d..20c9fe5aa 100644 --- a/server/helpers/captions-utils.ts +++ b/server/helpers/captions-utils.ts | |||
@@ -3,7 +3,7 @@ import { join } from 'path' | |||
3 | import { CONFIG } from '../initializers' | 3 | import { CONFIG } from '../initializers' |
4 | import { VideoCaptionModel } from '../models/video/video-caption' | 4 | import { VideoCaptionModel } from '../models/video/video-caption' |
5 | import * as srt2vtt from 'srt-to-vtt' | 5 | import * as srt2vtt from 'srt-to-vtt' |
6 | import { createReadStream, createWriteStream } from 'fs' | 6 | import { createReadStream, createWriteStream } from 'fs-extra' |
7 | 7 | ||
8 | async function moveAndProcessCaptionFile (physicalFile: { filename: string, path: string }, videoCaption: VideoCaptionModel) { | 8 | async function moveAndProcessCaptionFile (physicalFile: { filename: string, path: string }, videoCaption: VideoCaptionModel) { |
9 | const videoCaptionsDir = CONFIG.STORAGE.CAPTIONS_DIR | 9 | const videoCaptionsDir = CONFIG.STORAGE.CAPTIONS_DIR |