Add ability to save replay of permanent lives

This commit is contained in:
Chocobozzz
2022-04-21 09:06:52 +02:00
parent 2024a3b933
commit 4ec52d04dc
20 changed files with 426 additions and 175 deletions

View File

@@ -118,12 +118,6 @@ const videoLiveAddValidator = getCommonVideoEditAttributes().concat([
})
}
if (body.permanentLive && body.saveReplay) {
cleanUpReqFiles(req)
return res.fail({ message: 'Cannot set this live as permanent while saving its replay' })
}
const user = res.locals.oauth.token.User
if (!await doesVideoChannelOfAccountExist(body.channelId, user, res)) return cleanUpReqFiles(req)