X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fmigrations%2Fpeertube-4.0.ts;h=abf431888f67135c98914f82bbcfec9b23e8758a;hb=875c402bab73feaa5fea224aef64677fbef577da;hp=387f6dc9c20b84a59321d08ecb0f4673fb601c75;hpb=e1ab52d7ec7370a6f9f5937192d6003206af1ac0;p=github%2FChocobozzz%2FPeerTube.git 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 }