]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/create-import-video-file-job.ts
Bumped to version v1.0.0-beta.11
[github/Chocobozzz/PeerTube.git] / scripts / create-import-video-file-job.ts
index a2f4f38f2ffee306fcd99fadb81749ef1a7983c9..2b636014a6636b228cfb7b54fe9bceb610d17f8d 100644 (file)
@@ -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,