From d91be8acd79b828223afce07b9bad7a8f7140e17 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 25 Nov 2021 14:39:37 +0100 Subject: [PATCH] Don't process live in migration script --- scripts/migrations/peertube-4.0.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/migrations/peertube-4.0.ts b/scripts/migrations/peertube-4.0.ts index 387f6dc9c..abf431888 100644 --- a/scripts/migrations/peertube-4.0.ts +++ b/scripts/migrations/peertube-4.0.ts @@ -43,7 +43,7 @@ async function processVideo (videoId: number) { const video = await VideoModel.loadWithFiles(videoId) const hls = video.getHLSPlaylist() - if (!hls || hls.playlistFilename !== 'master.m3u8' || hls.VideoFiles.length === 0) { + if (video.isLive || !hls || hls.playlistFilename !== 'master.m3u8' || hls.VideoFiles.length === 0) { return }