aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-07 09:43:18 +0200
committerChocobozzz <me@florianbigard.com>2018-06-07 09:43:18 +0200
commit28be89161aab245526d64f6fb7dd29391a97fe0a (patch)
tree1ee8bece60eea295f218cb5936141848f3a470fc /scripts
parent0138af9237b77dd7d3a49260d164193b4048de84 (diff)
downloadPeerTube-28be89161aab245526d64f6fb7dd29391a97fe0a.tar.gz
PeerTube-28be89161aab245526d64f6fb7dd29391a97fe0a.tar.zst
PeerTube-28be89161aab245526d64f6fb7dd29391a97fe0a.zip
Improve create import file job
Fix federation of .ogv videos
Diffstat (limited to 'scripts')
-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,