mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Add ability to save replay of permanent lives
This commit is contained in:
parent
2024a3b933
commit
4ec52d04dc
20 changed files with 426 additions and 175 deletions
|
@ -9,12 +9,12 @@ function buildConcatenatedName (segmentOrPlaylistPath: string) {
|
|||
return 'concat-' + num[1] + '.ts'
|
||||
}
|
||||
|
||||
async function cleanupLive (video: MVideo, streamingPlaylist: MStreamingPlaylist) {
|
||||
async function cleanupLive (video: MVideo, streamingPlaylist?: MStreamingPlaylist) {
|
||||
const hlsDirectory = getLiveDirectory(video)
|
||||
|
||||
await remove(hlsDirectory)
|
||||
|
||||
await streamingPlaylist.destroy()
|
||||
if (streamingPlaylist) await streamingPlaylist.destroy()
|
||||
}
|
||||
|
||||
export {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue