]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Ensure we don't move live to object storage
authorChocobozzz <me@florianbigard.com>
Fri, 17 Dec 2021 13:55:12 +0000 (14:55 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 17 Dec 2021 13:55:12 +0000 (14:55 +0100)
scripts/create-move-video-storage-job.ts

index 505bbd61b8e379f3e6abc17c9e96e7f64560f936..699487f72e7b2a876520e59bb7364ed52356a4f8 100644 (file)
@@ -57,6 +57,11 @@ async function run () {
       process.exit(-1)
     }
 
+    if (video.isLive) {
+      console.error('Cannot process live video')
+      process.exit(-1)
+    }
+
     ids.push(video.id)
   } else {
     ids = await VideoModel.listLocalIds()