Don't process live in migration script

pull/4597/head
Chocobozzz 2021-11-25 14:39:37 +01:00
parent 63e4d84f11
commit d91be8acd7
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View 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
}