diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-17 14:55:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-17 14:55:12 +0100 |
commit | 709565486f86ce9ee553e2e45372ce8226a782fb (patch) | |
tree | adb650b4892cebc7722df48f3064aab29cee1403 /scripts | |
parent | 9d9a37330ce23642460d911f2932b8b70c80d6a0 (diff) | |
download | PeerTube-709565486f86ce9ee553e2e45372ce8226a782fb.tar.gz PeerTube-709565486f86ce9ee553e2e45372ce8226a782fb.tar.zst PeerTube-709565486f86ce9ee553e2e45372ce8226a782fb.zip |
Ensure we don't move live to object storage
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/create-move-video-storage-job.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/create-move-video-storage-job.ts b/scripts/create-move-video-storage-job.ts index 505bbd61b..699487f72 100644 --- a/scripts/create-move-video-storage-job.ts +++ b/scripts/create-move-video-storage-job.ts | |||
@@ -57,6 +57,11 @@ async function run () { | |||
57 | process.exit(-1) | 57 | process.exit(-1) |
58 | } | 58 | } |
59 | 59 | ||
60 | if (video.isLive) { | ||
61 | console.error('Cannot process live video') | ||
62 | process.exit(-1) | ||
63 | } | ||
64 | |||
60 | ids.push(video.id) | 65 | ids.push(video.id) |
61 | } else { | 66 | } else { |
62 | ids = await VideoModel.listLocalIds() | 67 | ids = await VideoModel.listLocalIds() |