]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't process live when moving to external storage
authorChocobozzz <me@florianbigard.com>
Tue, 7 Mar 2023 10:53:06 +0000 (11:53 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 7 Mar 2023 10:53:06 +0000 (11:53 +0100)
scripts/create-move-video-storage-job.ts

index 13ba3c0b77b76e17feb42092ef5c5d366bafb56d..c402115f0cab4eeba46f1eaf548fb5c4beee6d4b 100644 (file)
@@ -72,6 +72,8 @@ async function run () {
   for (const id of ids) {
     const videoFull = await VideoModel.loadFull(id)
 
+    if (videoFull.isLive) continue
+
     const files = videoFull.VideoFiles || []
     const hls = videoFull.getHLSPlaylist()