-async function cleanupPermanentLive (video: MVideo, streamingPlaylist?: MStreamingPlaylist) {
- const hlsDirectory = getLiveDirectory(video)
-
- await cleanupTMPLiveFiles(hlsDirectory)
+async function cleanupPermanentLive (video: MVideo, streamingPlaylist: MStreamingPlaylist) {
+ await cleanupTMPLiveFiles(video)