X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fcreate-move-video-storage-job.ts;h=c402115f0cab4eeba46f1eaf548fb5c4beee6d4b;hb=b99dc4c21d9829d649c3fe9094de2639686286c4;hp=0f0d4ee35f770bad129067ac525a59d864aa4d05;hpb=4fae2b1f300c1f027629569817262f60873a663a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/create-move-video-storage-job.ts b/scripts/create-move-video-storage-job.ts index 0f0d4ee35..c402115f0 100644 --- a/scripts/create-move-video-storage-job.ts +++ b/scripts/create-move-video-storage-job.ts @@ -37,7 +37,7 @@ run() async function run () { await initDatabaseModels(true) - JobQueue.Instance.init(true) + JobQueue.Instance.init() let ids: number[] = [] @@ -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()