1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Split types and typings

This commit is contained in:
Chocobozzz 2020-06-18 10:45:25 +02:00
parent d6d951ddc0
commit 26d6bf6533
No known key found for this signature in database
GPG key ID: 583A612D890159BE
175 changed files with 208 additions and 206 deletions

View file

@ -2,7 +2,7 @@ import { join } from 'path'
import { CONFIG } from '../initializers/config'
import * as srt2vtt from 'srt-to-vtt'
import { createReadStream, createWriteStream, move, remove } from 'fs-extra'
import { MVideoCaptionFormattable } from '@server/typings/models'
import { MVideoCaptionFormattable } from '@server/types/models'
async function moveAndProcessCaptionFile (physicalFile: { filename: string, path: string }, videoCaption: MVideoCaptionFormattable) {
const videoCaptionsDir = CONFIG.STORAGE.CAPTIONS_DIR