X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fcreate-move-video-storage-job.ts;h=c402115f0cab4eeba46f1eaf548fb5c4beee6d4b;hb=b99dc4c21d9829d649c3fe9094de2639686286c4;hp=18629aa27dad54f94a963a7866657542f067220e;hpb=1808a1f8e4b7b102823492a2007a46929aebf189;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/create-move-video-storage-job.ts b/scripts/create-move-video-storage-job.ts index 18629aa27..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[] = [] @@ -70,7 +70,9 @@ async function run () { } for (const id of ids) { - const videoFull = await VideoModel.loadAndPopulateAccountAndServerAndTags(id) + const videoFull = await VideoModel.loadFull(id) + + if (videoFull.isLive) continue const files = videoFull.VideoFiles || [] const hls = videoFull.getHLSPlaylist()