1
0
Fork 0

Don't process live in migration script

This commit is contained in:
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

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
}