aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/create-import-video-file-job.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/create-import-video-file-job.ts')
-rw-r--r--scripts/create-import-video-file-job.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/create-import-video-file-job.ts b/scripts/create-import-video-file-job.ts
index a2f4f38f2..2b636014a 100644
--- a/scripts/create-import-video-file-job.ts
+++ b/scripts/create-import-video-file-job.ts
@@ -27,6 +27,7 @@ async function run () {
27 27
28 const video = await VideoModel.loadByUUID(program['video']) 28 const video = await VideoModel.loadByUUID(program['video'])
29 if (!video) throw new Error('Video not found.') 29 if (!video) throw new Error('Video not found.')
30 if (video.isOwned() === false) throw new Error('Cannot import files of a non owned video.')
30 31
31 const dataInput = { 32 const dataInput = {
32 videoUUID: video.uuid, 33 videoUUID: video.uuid,