From 28be89161aab245526d64f6fb7dd29391a97fe0a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 7 Jun 2018 09:43:18 +0200 Subject: Improve create import file job Fix federation of .ogv videos --- scripts/create-import-video-file-job.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') 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 () { 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, -- cgit v1.2.3