]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/captions-utils.ts
Underline links in feed popover when hovering
[github/Chocobozzz/PeerTube.git] / server / helpers / captions-utils.ts
index 8b04f878d1273b079ab1860bf83348e2ee8efdf6..20c9fe5aa436efb48cb45128c1c97ec9f2d0c1f5 100644 (file)
@@ -3,7 +3,7 @@ import { join } from 'path'
 import { CONFIG } from '../initializers'
 import { VideoCaptionModel } from '../models/video/video-caption'
 import * as srt2vtt from 'srt-to-vtt'
-import { createReadStream, createWriteStream } from 'fs'
+import { createReadStream, createWriteStream } from 'fs-extra'
 
 async function moveAndProcessCaptionFile (physicalFile: { filename: string, path: string }, videoCaption: VideoCaptionModel) {
   const videoCaptionsDir = CONFIG.STORAGE.CAPTIONS_DIR