+import { registerTSPaths } from '../server/helpers/register-ts-paths'
+registerTSPaths()
+
import * as program from 'commander'
import { resolve } from 'path'
import { VideoModel } from '../server/models/video/video'
const video = await VideoModel.loadByUUID(program['video'])
if (!video) throw new Error('Video not found.')
+ if (video.isOwned() === false) throw new Error('Cannot import files of a non owned video.')
const dataInput = {
videoUUID: video.uuid,