]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/migrations/peertube-4.0.ts
scripts/test: make MacOS compatible
[github/Chocobozzz/PeerTube.git] / scripts / migrations / peertube-4.0.ts
index 387f6dc9c20b84a59321d08ecb0f4673fb601c75..abf431888f67135c98914f82bbcfec9b23e8758a 100644 (file)
@@ -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
   }