aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-25 14:39:37 +0100
committerChocobozzz <me@florianbigard.com>2021-11-25 14:39:37 +0100
commitd91be8acd79b828223afce07b9bad7a8f7140e17 (patch)
treefe185df2e65bd0e72847fa191fa812351bd0fe54 /scripts
parent63e4d84f114b6ea90f0697ca452ccf281ac5395d (diff)
downloadPeerTube-d91be8acd79b828223afce07b9bad7a8f7140e17.tar.gz
PeerTube-d91be8acd79b828223afce07b9bad7a8f7140e17.tar.zst
PeerTube-d91be8acd79b828223afce07b9bad7a8f7140e17.zip
Don't process live in migration script
Diffstat (limited to 'scripts')
-rw-r--r--scripts/migrations/peertube-4.0.ts2
1 files changed, 1 insertions, 1 deletions
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) {
43 const video = await VideoModel.loadWithFiles(videoId) 43 const video = await VideoModel.loadWithFiles(videoId)
44 44
45 const hls = video.getHLSPlaylist() 45 const hls = video.getHLSPlaylist()
46 if (!hls || hls.playlistFilename !== 'master.m3u8' || hls.VideoFiles.length === 0) { 46 if (video.isLive || !hls || hls.playlistFilename !== 'master.m3u8' || hls.VideoFiles.length === 0) {
47 return 47 return
48 } 48 }
49 49